TWI740380B - Monitoring equipment system and method thereof - Google Patents
Monitoring equipment system and method thereof Download PDFInfo
- Publication number
- TWI740380B TWI740380B TW109105004A TW109105004A TWI740380B TW I740380 B TWI740380 B TW I740380B TW 109105004 A TW109105004 A TW 109105004A TW 109105004 A TW109105004 A TW 109105004A TW I740380 B TWI740380 B TW I740380B
- Authority
- TW
- Taiwan
- Prior art keywords
- monitoring
- data
- upload
- status information
- internet
- Prior art date
Links
Images
Abstract
Description
本發明係關於物聯網技術,特別是關於用於監控物聯網設備之系統及其方法。 The present invention relates to the technology of the Internet of Things, in particular to a system and method for monitoring Internet of Things devices.
隨著物聯網技術的普及,監控物聯網設備以維持物聯網系統之運作的需求也隨之出現。 With the popularization of the Internet of Things technology, the need to monitor the Internet of Things devices to maintain the operation of the Internet of Things system has also emerged.
傳統監控物聯網設備的應用中,可以設置額外的裝置(包括監控螢幕、感測器、警報器及通訊設備等)以蒐集各物聯網設備的狀態資料並送至監控主機以進行分析;或是設定物聯網設備或感測器以將其產生之原始數據(rawdata)轉換成統一格式後傳送至資料處理中心以進行分析;亦或是對可接取網路日誌的物聯網設備進行網路日誌的資料正規化以進行監控。然而,上述之應用中,設置額外的裝置將會耗費額外的成本,此外,現有市場中存在無法實作將原始數據轉換成所欲格式的物聯網設備,並且,也存在無法接取網路日誌的物聯網設備。由此可知,現行監控物聯網設備的方法仍存在眾多限制而無法全面地進行監控。 In the application of traditional monitoring IoT devices, additional devices (including monitoring screens, sensors, alarms and communication equipment, etc.) can be set up to collect the status data of each IoT device and send it to the monitoring host for analysis; or Configure the IoT device or sensor to convert the raw data generated by it into a unified format and send it to the data processing center for analysis; or to log the IoT device that can access the network log The data is normalized for monitoring. However, in the above-mentioned applications, setting up additional devices will consume additional costs. In addition, there are IoT devices in the existing market that cannot convert the original data into the desired format, and there are also Internet logs that cannot be accessed. IoT devices. It can be seen that the current methods for monitoring IoT devices still have many limitations and cannot be fully monitored.
因此,如何在不受物聯網設備的硬體限制下實現對物聯網設備的監控,係為本技術領域的重要課題之一。 Therefore, how to realize the monitoring of the Internet of Things equipment without being restricted by the hardware of the Internet of Things equipment is one of the important topics in this technical field.
為解決上述問題,本發明提供一種監測設備之系統,包括:監控應用集模組,係用於提供物聯網設備之管理服務及維護該物聯網設備之監控訊息;數據處理器,係用於根據該物聯網設備上傳之數據資料產生詮釋資料;輕量轉派器,係用於提取該詮釋資料以產生轉派封包;以及監控處理器,係用於解析該轉派封包並提取該監控訊息,以執行該物聯網設備之監控服務。 In order to solve the above problems, the present invention provides a system for monitoring equipment, including: a monitoring application set module, which is used to provide management services for the Internet of Things equipment and maintain the monitoring information of the Internet of Things equipment; The data data uploaded by the Internet of Things device generates interpretation data; a lightweight transfer device is used to extract the interpretation data to generate a transfer packet; and a monitoring processor is used to parse the transfer packet and extract the monitoring information, To perform the monitoring service of the IoT device.
在前述之系統中,該物聯網設備之管理服務係包括:維護該物聯網設備之監控設定;維護該物聯網設備之狀態資訊;以及維護該狀態資訊之歷史紀錄,其中,該監控設定係用以設定該物聯網設備是否為監控對象,而該狀態資訊係用以紀錄該物聯網設備之上線、異常及離線狀態,該歷史紀錄係用以紀錄該狀態資訊於監控期間之變化,且該監控設定、該狀態資訊及該歷史紀錄係利用該物聯網設備之識別碼標示而由該監控應用集模組紀錄於資料庫中。 In the aforementioned system, the management service of the IoT device includes: maintaining the monitoring settings of the IoT device; maintaining the status information of the IoT device; and maintaining a historical record of the status information, wherein the monitoring settings are used To set whether the IoT device is a monitoring object, and the status information is used to record the online, abnormal, and offline status of the IoT device, and the historical record is used to record the changes in the status information during the monitoring period, and the monitoring The setting, the status information and the history record are marked by the identification code of the Internet of Things device and recorded in the database by the monitoring application set module.
在前述之系統中,該物聯網設備之該監控設定經設定為監控對象後,該監控應用集模組即產生該監控訊息,且該監控設定經設定為非監控對象後,該監控應用集模組即刪除該監控訊息。 In the aforementioned system, after the monitoring setting of the Internet of Things device is set as a monitoring target, the monitoring application set module generates the monitoring message, and after the monitoring setting is set as a non-monitoring target, the monitoring application set module The group deletes the monitoring message.
在前述之系統中,該監控訊息之內容係包含該物聯網設備之識別碼、上傳週期、該上傳週期內預設上傳數據資料之頻率範圍、狀態資訊及該狀態資訊之最後變更時間。 In the aforementioned system, the content of the monitoring message includes the identification code of the Internet of Things device, the upload period, the frequency range of the preset upload data in the upload period, the status information, and the last change time of the status information.
在前述之系統中,該詮釋資料之內容係包含該物聯網設備之上傳週期、識別碼、上傳數據資料之目前上傳時間、該上傳週期內上傳數據資料之累積次數及該上傳週期內上傳數據資料之初次上傳時間。 In the aforementioned system, the content of the interpretation data includes the upload cycle of the IoT device, the identification code, the current upload time of the uploaded data, the cumulative number of data uploaded in the upload cycle, and the data uploaded in the upload cycle The time of the first upload.
在前述之系統中,該輕量轉派器提取該詮釋資料以產生轉派封包之方式包括下列步驟:進行輕量化轉派以計算該監控服務欲監控之物聯網設備之上傳週期的x集合;提取該詮釋資料中包含有與該x集合之任一者相符之該上傳週期;以及將所提取之該詮釋資料產製為該轉派封包,其中,該輕量化轉派係以公式x,x|Cm,xCm,Cm=UT%M,xN,UTN,MN計算該x集合,其中,UT係代表以世界協調時間基準到目前時間的總分鐘數,且M係代表物聯網設備允許設置之最大上傳週期。 In the aforementioned system, the method for the lightweight redirector to extract the interpretive data to generate a transfer packet includes the following steps: perform a lightweight transfer to calculate the x set of upload cycles of the IoT devices to be monitored by the monitoring service; Extracting the interpretive data includes the upload period that matches any of the x sets; and producing the extracted interpretive data into the transfer packet, where the lightweight transfer system is based on the formula x,x|Cm,x Cm,Cm=UT%M,x N,UT N,M N calculates the set of x, where UT represents the total number of minutes from the current time based on UTC, and M represents the maximum upload period allowed to be set by the IoT device.
在前述之系統中,該監控訊息包含之狀態資訊、該資料庫中之狀態資訊及歷史紀錄係由該監控應用集模組根據該監控服務之判斷結果更新。 In the aforementioned system, the status information contained in the monitoring message, the status information and historical records in the database are updated by the monitoring application set module according to the judgment result of the monitoring service.
在前述之系統中,該監控處理器係於該監控服務判斷該物聯網設備於該上傳週期內上傳數據資料之累積次數超出預設上傳數據資料之頻率範圍時,向該監控應用集模組通知該物聯網設備之狀態資訊為異常,以及,該監控處理器係於該監控服務判斷該物聯網設備上傳數據資料之目前上傳時間與該上傳週期內上傳數據資料之初次上傳時間之間隔超過該上傳週期時,向該監控應用集模組通知該物聯網設備之狀態資訊為離線。 In the aforementioned system, the monitoring processor notifies the monitoring application set module when the monitoring service determines that the cumulative number of uploads of data by the Internet of Things device in the upload period exceeds the preset frequency range of uploading data The status information of the Internet of Things device is abnormal, and the monitoring processor determines in the monitoring service that the interval between the current upload time of the data uploaded by the Internet of Things device and the initial upload time of the uploaded data in the upload cycle exceeds the upload During the period, the monitoring application set module is notified that the status information of the Internet of Things device is offline.
在前述之系統中,該管理服務復包括:將該數據處理器產生之詮釋資料內容儲存於該資料庫;提供外部服務呼叫該監控應用集模組以調閱該資料庫中之監控設定、狀態資訊、歷史紀錄及詮釋資料內容;以及當該物聯網設備之該監控設定被設定為非監控對象時,刪除該資料庫中該識別碼對應之監控設定、狀態資訊、歷史紀錄及詮釋資料內容。 In the aforementioned system, the management service includes: storing the content of the interpretation data generated by the data processor in the database; providing external services to call the monitoring application set module to access the monitoring settings and status in the database Information, historical records and interpretation data content; and when the monitoring setting of the IoT device is set as a non-monitoring object, delete the monitoring setting, status information, historical record and interpretation data content corresponding to the identification code in the database.
本發明復提供一種監測設備之方法,包括:令數據處理器接收物聯網設備上傳之數據資料;令該數據處理器確認監控訊息快取池中存有該物聯網設備之監控訊息;令該數據處理器將該數據資料產製為詮釋資料並儲存至詮釋資料快取池;令輕量轉派器進行輕量化轉派以提取該詮釋資料;令該輕量轉派器將該詮釋資料產製為轉派封包;令監控處理器接收該轉派封包並對應提取該物聯網設備之該監控訊息;令該監控處理器分析該詮釋資料及該監控訊息之內容;以及令該監控處理器判斷該物聯網設備之狀態資訊。 The present invention further provides a method for monitoring equipment, which includes: ordering a data processor to receive data uploaded by an Internet of Things equipment; ordering the data processor to confirm that the monitoring information of the Internet of Things equipment is stored in the monitoring information cache; and ordering the data The processor produces the data into interpretation data and stores it in the interpretation data cache; makes the lightweight forwarder perform lightweight forwarding to extract the interpretation data; makes the lightweight forwarder produce the interpretation data In order to transfer the packet; make the monitoring processor receive the transferred packet and correspondingly extract the monitoring message of the Internet of Things device; make the monitoring processor analyze the interpretation data and the content of the monitoring message; and make the monitoring processor determine the Status information of IoT devices.
在前述之方法中,該物聯網設備經設定為監控對象後,監控應用集模組即產生該監控訊息,且該物聯網設備經設定為非監控對象後,該監控應用集模組即刪除該監控訊息。 In the aforementioned method, after the Internet of Things device is set as a monitoring target, the monitoring application set module generates the monitoring message, and after the Internet of Things device is set as a non-monitoring target, the monitoring application set module deletes the monitoring application set module. Monitor messages.
在前述之方法中,該監控訊息之內容係包含該物聯網設備之識別碼、上傳週期、上傳週期內預設上傳數據資料之頻率範圍、狀態資訊及狀態資訊之最後變更時間。 In the aforementioned method, the content of the monitoring message includes the identification code of the Internet of Things device, the upload period, the frequency range of the preset upload data in the upload period, the status information, and the last change time of the status information.
在前述之方法中,該詮釋資料之內容係包含該物聯網設備之上傳週期、識別碼、上傳數據資料之目前上傳時間、上傳週期內上傳數據資料之累積次數及上傳週期內上傳數據資料之初次上傳時間。 In the aforementioned method, the content of the interpretation data includes the upload cycle of the IoT device, the identification code, the current upload time of the uploaded data, the cumulative number of uploads in the upload cycle, and the first upload of the data in the upload cycle Upload time.
在前述之方法中,該令輕量轉派器進行輕量化轉派以提取該詮釋資料之步驟係包括以下子步驟:令該輕量轉派器進行該輕量化轉派以計算欲監控之物聯網設備之上傳週期的x集合;以及令該輕量轉派器提取該詮釋資料中包含有與該x集合之任一者相符之該上傳週期者,其中,該輕量化轉派係以公式x,x|Cm,xCm,Cm=UT%M,xN,UTN,MN計算該x集合,其中,UT係代表以世界協調時間基準到目前時間的總分鐘數,且M係代表物聯網設備允許設置之最大上傳週期。 In the aforementioned method, the step of causing the lightweight transfer device to perform lightweight transfer to extract the interpretation data includes the following sub-steps: to make the lightweight transfer device perform the lightweight transfer to calculate the object to be monitored The x set of the upload period of the networked device; and the lightweight translator extracts the interpreter to extract the upload period that matches any one of the x sets, wherein the lightweight transponder uses the formula x,x|Cm,x Cm,Cm=UT%M,x N,UT N,M N calculates the set of x, where UT represents the total number of minutes from the current time based on UTC, and M represents the maximum upload period allowed to be set by the IoT device.
在前述之方法中,該監控處理器判斷該物聯網設備之狀態資訊之方式係包括:該監控處理器係於判斷該物聯網設備在上傳週期內上傳數據資料之累積次數超出預設上傳數據資料之頻率範圍時,判斷該物聯網設備之狀態資訊為異常;或者該監控處理器係於判斷該物聯網設備之上傳數據資料之目前上傳時間與上傳週期內上傳數據資料之初次上傳時間之間隔超過該上傳週期時,判斷該物聯網設備之狀態資訊為離線。 In the aforementioned method, the way for the monitoring processor to determine the status information of the Internet of Things device includes: the monitoring processor determines that the cumulative number of uploads of data data of the Internet of Things device in the upload cycle exceeds the preset upload data data When the frequency range is within the frequency range, it is judged that the status information of the Internet of Things device is abnormal; or the monitoring processor is judging that the interval between the current upload time of the uploaded data of the Internet of Things device and the initial upload time of the uploaded data in the upload cycle exceeds During the upload period, it is determined that the status information of the Internet of Things device is offline.
在前述之方法中,復包括:令監控應用集模組將該監控處理器判斷該物聯網設備之狀態資訊之結果記錄為該狀態資訊之歷史紀錄,其中,該歷史紀錄係儲存於資料庫中;令外部服務呼叫該監控應用集模組以調閱該資料庫中之該歷史紀錄;以及令該外部服務根據該歷史紀錄執行該物聯網設備之異常處理作業。 In the foregoing method, the further includes: ordering the monitoring application set module to record the result of the monitoring processor determining the status information of the Internet of Things device as a historical record of the status information, wherein the historical record is stored in a database ; Make the external service call the monitoring application set module to access the historical record in the database; and make the external service execute the abnormal handling operation of the IoT device based on the historical record.
綜上所述,本發明之監控設備之系統及其方法係藉由多工的監控處理器、數據處理器、及監控應用集模組,同時執行多個物聯網設備之設定、數據資料之處理及物聯網設備之監控服務等作業,且僅需根據物聯網設備上傳數據資料之週期及頻率等資訊即可判斷物聯網設備之狀態資訊,故只要是能上傳數據資料至物聯網平台之物聯網設備皆能被監控,不需受限於物聯網設備的設置限制。另外,藉由執行輕量化轉派以於不同時間點挑選適合被監控應用集模組監控的物聯網設備,可達到僅用少量的資源監控大量的物聯網設備數據,進而大幅提升監控服務的效率。 In summary, the monitoring device system and method of the present invention uses multiplexed monitoring processors, data processors, and monitoring application set modules to simultaneously execute the settings of multiple IoT devices and the processing of data data. And the monitoring service of the Internet of Things equipment and other operations, and only need to judge the status information of the Internet of Things equipment based on the period and frequency of the data uploaded by the Internet of Things equipment, so as long as it is the Internet of Things that can upload data to the Internet of Things platform All devices can be monitored without being restricted by the setting restrictions of IoT devices. In addition, by performing lightweight transfers to select IoT devices suitable for monitoring by the monitored application set module at different points in time, it is possible to monitor a large number of IoT device data with only a small amount of resources, thereby greatly improving the efficiency of monitoring services .
101:網頁介面/手機應用程式 101: Web interface/mobile application
102:物聯網設備 102: IoT devices
103:數據資料 103: Data Sheet
104:資料庫/資料表 104: database/table
110:數據資料代理人 110: Data Agent
120:數據處理器 120: data processor
130:監控應用集模組 130: Monitoring application set module
140:監控訊息快取池 140: Monitor message cache
141:監控訊息 141: Monitoring message
150:詮釋資料快取池 150: Interpretation data cache
151:詮釋資料 151: Interpretation of Data
160:輕量轉派器 160: Lightweight Dispatcher
170:轉派封包代理人 170: Assign a packet agent
180:監控處理器 180: monitor processor
310:物聯網設備 310: IoT devices
311:物聯網網頁 311: Internet of Things webpage
312:物聯網API 312: Internet of Things API
313:postgresql 313:postgresql
320:原始數據-代理人 320: Raw Data-Agent
330:redis 330: redis
331:監控訊息 331: monitoring message
332:詮釋資料 332: Interpretation of Data
340:封包-代理人 340: Packet-Agent
350:原始數據-消費者 350: Raw Data-Consumer
360:ams-調度者 360: ams-scheduler
370:ams-消費者 370: ams-consumer
380:ams-應用程式 380: ams-application
S210~S260:步驟 S210~S260: steps
第1圖係揭示本發明之監控設備之系統的示意架構圖; Figure 1 is a schematic architecture diagram showing the system of the monitoring device of the present invention;
第2圖係揭示本發明之監控設備之方法的步驟流程圖;以及 Figure 2 is a flowchart showing the steps of the monitoring device method of the present invention; and
第3圖係揭示本發明之監控設備之系統及其方法的實施態樣。 Figure 3 shows the implementation of the monitoring device system and method of the present invention.
以下藉由特定的實施例說明本案之實施方式,熟習此項技藝之人士可由本文所揭示之內容輕易地瞭解本案之其他優點及功效。本說明書所附圖式所繪示之結構、比例、大小等均僅用於配合說明書所揭示之內容,以供熟悉此技藝之人士之瞭解與閱讀,非用於限定本案可實施之限定條件,故任何修飾、改變或調整,在不影響本案所能產生之功效及所能達成之目的下,均應仍落在本案所揭示之技術內容得能涵蓋之範圍內。 The following specific examples are used to illustrate the implementation of this case. Those who are familiar with this technique can easily understand the other advantages and effects of this case from the content disclosed in this article. The structure, ratio, size, etc. shown in the drawings in this manual are only used to match the content disclosed in the manual for the understanding and reading of those who are familiar with the art, and are not used to limit the limited conditions that can be implemented in this case. Therefore, any modification, change or adjustment shall still fall within the scope of the technical content disclosed in this case without affecting the effects and objectives that can be achieved in this case.
在第1圖所示之示意架構圖中,本發明之監控設備之系統主要包括數據處理器120、監控應用集模組130、輕量轉派器160及監控處理器180等,其係與第1圖中所示其他元件配合與通訊連接,以監控各種物聯網設備102。
In the schematic architecture diagram shown in Figure 1, the monitoring device system of the present invention mainly includes a
在第1圖揭示內容中,為方便理解而僅繪示一個物聯網設備102,然而本發明之系統亦可視需要同時服務複數個物聯網設備102。
In the disclosure of FIG. 1, only one
請先看到監控應用集模組130,其設置於設備中,係提供複數個可被外部服務呼叫之應用程式介面(API),以用於執行對物聯網設備102之管理服務,包括:更新或取得物聯網設備102之監控設定、更新或取得物聯網設備102之狀態資訊、調閱物聯網設備102之狀態資訊之歷史記錄等。
Please see the monitoring application set
在本實施例中,監控應用集模組130係為多工的元件,意指可持續且平行運作地執行上述之物聯網設備102的管理服務。
In this embodiment, the monitoring application set
在本實施例中,在本發明之系統執行物聯網設備102之監控服務前或期間,管理者可透過網頁介面/手機應用程式101呼叫監控應用集模組130並設定所欲監控之物聯網設備102,此時監控應用集模組130會在訊息快取池(例如,監控訊息快取池140)中儲存根據管理者指定之物聯網設備102產生之監控訊息141,以及同步於資料庫/資料表104中記錄物聯網設備102之監控設定及狀態資訊。
In this embodiment, before or during the implementation of the monitoring service of the
在一實施例中,監控訊息141係以鍵-值(key-value)方式實作。例如,監控訊息141可表示為「A288:3|2|5|online|1562635802000」之形式,其鍵欄位(key)係描述管理者欲監控之物聯網設備102之識別碼為A288,並且其值(value)欄位係描述此物聯網設備102具有上傳週期為3分鐘、此上傳週期內預設上傳數據資料之頻率範圍(例如,預設3分鐘內上傳2(最小)至5(最大)個數據資料)、當前狀態資訊為上線(online)以及狀態資訊最後變更時間為1562635802000毫秒等。同時,監控應用集模組130亦會在資料表/資料庫104中記錄識別碼為A288之物聯網設備102之監控設定為「要監控」以及目前狀態資訊為「上線」。
In one embodiment, the
在本實施例中,管理者也可透過網頁介面/手機應用程式101呼叫監控應用集模組130以更動物聯網設備102之監控設定。舉例來說,管理者可設定另一物聯網設備102(例如,識別碼為A287之物聯網設備102)之監控設定為「不監控」,此時,監控應用集模組130會將訊息快取池(例如,監控訊息快取池140)中鍵(key)欄位為A287之監控訊息141刪除,並同步將資料表/資料庫104中關於識別碼A287之物聯網設備102的監控設定與狀態資訊刪除。
In this embodiment, the administrator can also call the
在本實施例中,監控應用集模組130還可配合本發明之系統對物聯網設備102之監控情況更新監控訊息141及資料表/資料庫104中的狀態資訊與歷史紀錄。舉例來說,當偵測到某一物聯網設備102(例如,識別碼為A288之物聯網設備102)之狀態資訊由「上線」變更為「離線(offline)」或「異常(abnormal)」時,監控應用集模組130會將監控訊息快取池140中對應此物聯網設備102之監控訊息141的值(value)欄位的狀態資訊變更為「離線(offline)」或「異常(abnormal)」及更新狀態資訊最後變更時間,以及同步於資料表/資料庫104增加此物聯網設備102之狀態資訊與變更時間,以將上述資料累計為此物聯網設備102的狀態資訊之歷史紀錄(例如,以狀態資訊變更時間作為區別)。
In this embodiment, the monitoring application set
在本實施例中,監控應用集模組130還可將資料庫/資料表104中物聯網設備102的狀態資訊之歷史紀錄匯出以供執行物聯網設備102的異常處理作業。例如,管理者可透過網頁介面/手機應用程式101呼叫監控應用集模組130以調閱資料庫/資料表104儲存之物聯網設備102的狀態資訊之歷史紀錄並以報表方式匯出,並根據此歷史紀錄中的異常資訊執行物聯網設備102之異常處理作業。或是例如,網頁介面/手機應用程式101可依管理者設定或依固定時間查詢資料庫/資料表104儲存之物聯網設備102之狀態資訊之歷史紀錄,並在發現有異常時發送告警訊息(例如,MQTT/簡訊/EMAIL/LINE之訊息通知等)或是啟動警鈴設備。
In this embodiment, the monitoring application set
在一些實施例中,網頁介面/手機應用程式101係由第三方服務或外部服務提供,並且可僅存在其中一者或是同時存在,或是根據系統
之不同需要設置以用於執行設定物聯網設備102、匯出報表、發送或接收告警訊息及啟動警鈴設備之任一者。
In some embodiments, the web interface/
現請看到第1圖的數據處理器120,其係用於依據物聯網設備102上傳的數據資料103產生詮釋資料151。數據處理器120也是多工的元件,且可持續並平行運作地處理來自多個物聯網設備102的數據資料103。
Now please see the
在本實施例中,物聯網設備102上傳的數據資料103會先傳送(例如,以固定周期或頻率不斷上傳)至數據資料代理人110,數據處理器120再訂閱數據代理人110以獲得數據資料103。此時,數據處理器120先根據與數據資料103關聯之物聯網設備102的識別碼(例如,識別碼為A288)查找監控訊息快取池140中是否存在相關之監控訊息141。若監控訊息快取池140中不存在物聯網設備102的監控訊息時(即為找不到鍵欄位為A288的監控訊息),表示此物聯網設備102並非管理者欲監控的對象,數據處理器120遂忽略此數據資料103且本發明之系統將不會對此物聯網設備102進行監控。若監控訊息快取池140中有存在物聯網設備102的監控訊息141時(即為存在鍵欄位為A288的監控訊息141),表示此物聯網設備102為管理者欲監控的設備,數據處理器120遂接續進行詮釋資料設定方法。
In this embodiment, the
本文所述之詮釋資料設定方法係於詮釋資料快取池150中產生或更新詮釋資料151之方法。在本實施例中,詮釋資料151也是以鍵-值(key-value)方式實作。例如,詮釋資料151可表示為「3A288:1562635875000|1|1562635804000」的形式。其中,鍵(key)欄位係為物聯網設備102之上傳週期(例如,3分鐘的上傳週期,亦表示此物聯網設備102需每3
分鐘進行一次監測,且在本文中亦稱為「分-因子」)與識別碼(例如,A288)的組合。並且其中,值(value)欄位內容依序分別表示此物聯網設備102目前上傳數據資料的時間(後稱「目前上傳時間」且以毫秒表示)、上傳週期期間上傳數據資料的累積次數及上傳週期內初次上傳數據資料103的時間(後稱「初次上傳時間」且以毫秒表示)。詮釋資料151內容係為本發明之系統後續進行監控服務時判斷各物聯網設備102之狀態資訊的基準之一。
The interpretation data setting method described herein is a method of generating or updating the
在上述之詮釋資料設定方法中,數據處理器120先確認詮釋資料快取池150中是否已存在鍵欄位有物聯網設備102之識別碼(例如,3A288)的詮釋資料151。沒有的情況下係表示此數據資料103為物聯網設備102在上傳週期內第一次上傳的數據資料103,數據處理器120遂產生新的詮釋資料151並存入詮釋資料快取池150中,此時新的詮釋資料151例如可表示為「3A288:1562635875000|1|156235875000」,其中,此詮釋資料151的目前上傳時間及初次上傳時間皆為此次上傳數據資料的時間且上傳數據資料的累積次數為1。若詮釋資料快取池150已存在鍵欄位為3A288的詮釋資料151時(例如,已存在「3A288:1562635804000|1|156235804000」的詮釋資料151),數據處理器120係更新此詮釋資料151為「3A288:1562635875000|2|156235804000」,其中,此詮釋資料151之目前上傳時間係更新為此次上傳數據資料103的時間且上傳的累積次數已由1累加為2。
In the aforementioned interpretation data setting method, the
在一實施例中,本發明之系統也會將詮釋資料151之內容儲存至資料庫/資料表104中。舉例來說,當數據處理器120產生詮釋資料151後,也會呼叫監控應用集模組130以將此詮釋資料151的內容存入資料庫/資料表104中。管理者也可透過網頁介面/手機應用程式101呼叫監控應用
集模組130以調閱詮釋資料151內容(例如,以報表方式輸出以供瀏覽),以作為異常處理作業之輔助資料。如先前所述,當一物聯網設備102的監控設定被管理者修改為「不監控」時,資料庫/資料表104中對應此物聯網設備102之識別碼的詮釋資料151內容也會隨之刪除。
In one embodiment, the system of the present invention also stores the content of the
在第1圖中,監控訊息快取池140與詮釋資料快取池150係以分開的元件繪製,然而,監控訊息快取池140與詮釋資料快取池150亦可以同樣的訊息快取池實作,如後續介紹之第3圖實施態樣所示。
In Figure 1, the
現請看到第1圖的輕量轉派器160,其係用於執行輕量化轉派演算法決定欲監控之物聯網設備102,以依照各物聯網設備102的上傳週期(分-因子)提取詮釋資料快取池150中應監控的詮釋資料151。
Now please see the
本文所述之輕量化轉派演算法主要用於算出當前時間點適合執行監控服務的物聯網設備102的集合,此集合係以詮釋資料151之鍵(key)欄位中的上傳週期(分-因子)作為提取的依據。在本實施例中,輕量化轉派演算法可由以下公式執行演算:x,x|Cm,xCm,Cm=UT%M,x N,UT N,M N,其中,UT係代表以世界協調時間(UTC)基準到目前時間的總毫秒數(即,UNIX時間戳)轉換為分鐘的態樣;而M係代表本發明之系統允許物聯網設備102設置之最大上傳週期(例如,35天,並以分鐘為單位表示)。經上述之公式找出的因子的集合即為現在時間點將進行監控的物聯網設備102可能具備的上傳週期(以分鐘為單位表示)之集合。藉此方式,本發明之系統可輪流挑選要進行監控的物聯網設備102,以少量資源達到快速執行對海量物聯網設備102之詮釋資料151之判讀。
The lightweight transfer algorithm described in this article is mainly used to calculate the set of
舉例來說,假設目前時間點為2019年07月10日11點50分00秒,UNIX時間戳則為1562730600000毫秒,故可算得輕量化轉派演算法之UT為26045510分鐘。接著,假設本發明之系統允許物聯網設備102之最大上傳週期為35天,故可算得輕量化轉派演算法之M為50400分鐘。將上述之UT及M帶入公式計算後得出之Cm=26045510%50400=39110,並可得出Cm的因數x集合為{1,2,5,10,3911,7822,19555,39110},即為目前時間點可進行監控之物聯網設備102之上傳週期(分-因子)的集合。
For example, assuming that the current time point is 11:50:00 on July 10, 2019, and the UNIX timestamp is 1562730600000 milliseconds, the UT of the lightweight transfer algorithm can be calculated as 26045510 minutes. Next, assuming that the system of the present invention allows the maximum upload period of the
輕量轉派器160執行輕量化轉派演算法得出上傳週期(分-因子)之集合後,係從詮釋資料快取池150中根據此集合提取所欲監控之物聯網設備102相關的詮釋資料151(即鍵(key)欄位之上傳週期(分-因子)與集合中任一者相符的詮釋資料151),並將此批詮釋資料151產製為轉派封包並傳送到轉派封包代理人170。
After the
現請看到第1圖之監控處理器180,其係用於接收來自轉派封包代理人170的轉派封包以及對應提取監控訊息快取池140中的監控訊息141(即,記錄有與轉派封包相同的物聯網設備102識別碼之監控訊息141),以執行物聯網設備102的監控服務。監控處理器180係多工之元件,係於訂閱封包代理人170後持續且平行運作地解析多個轉派封包以執行監控服務。
Now please see the
監控處理器180在執行監控服務時,先解析轉派封包以獲得物聯網設備102之識別碼(例如,A288)、上傳週期(例如,3分鐘)、上傳週期內累積上傳數據資料之次數(例如,詮釋資訊151中所記錄者)及此物聯網設備102上傳數據資料之目前上傳時間與初次上傳時間(例如,詮釋資料151中所記錄者)等資訊。接著,監控處理器180係根據上述解析之資訊與對應提取之監控訊息
141(即,記錄有與轉派封包相同物聯網設備102識別碼之監控訊息141)所紀錄上傳週期內預設上傳數據資料之最小及最大個數比較,進而判斷物聯網設備102之狀態資訊。例如,當發現物聯網設備102於上傳週期內上傳數據資料103之累積次數超出監控訊息141所紀錄之範圍時(例如,小於最小個數或大於最大個數),監控處理器180係判斷此物聯網設備102為「異常(abnormal)」,並呼叫監控應用集模組130更新監控訊息快取池140中對應之監控訊息141的狀態資訊為「異常(abnormal)」,並同步於資料庫/資料表104中紀錄此狀態資訊的變化。或是例如,當發現物聯網設備102上傳數據資料103之目前上傳時間與初次上傳時間之間隔超出上傳週期時,監控處理器180係判斷此物聯網設備102為「離線(offline)」,並呼叫監控應用集模組130更新監控訊息快取池140中對應之監控訊息141的狀態資訊為「離線(offline)」,並同步於資料庫/資料表104中紀錄此狀態資訊的變化。又例如,當監控處理器180發現轉派封包解析內容皆無前述之狀況時,係判斷此物聯網設備102為正常並可直接丟棄此轉派封包。
When the
當監控處理器180完成轉派封包之解析與判斷後,係自詮釋資料快取池150中刪除轉派封包對應之詮釋資料151,以避免後一輪的監控服務重複取用相同的詮釋資料151。
After the
第2圖係揭示本發明執行物聯網設備102之監控服務的流程步驟圖。
Fig. 2 is a flow chart showing the flow of the monitoring service of the
在步驟S210處,物聯網設備102係透過數據資料代理人110持續地(例如,以固定周期或頻率不斷上傳)上傳數據資料103至數據處理器120。
At step S210, the
在步驟S220處,數據處理器120係將數據資料103產製為詮釋資料151並儲存至詮釋資料快取池150。
At step S220, the
在步驟S230處,輕量轉派器160係執行輕量化轉派演算法以根據物聯網設備102之上傳週期提取詮釋資料151。
In step S230, the
在步驟S240處,輕量轉派器160提取之詮釋資料151係被產製為轉派封包並透過轉派封包代理人170傳送至監控處理器180進行監控服務。
In step S240, the
在步驟S250處,監控處理器180係解析轉派封包以判斷物聯網設備102之狀態資訊(例如,上線/異常/離線)。
At step S250, the
在步驟S260處,監控處理器180係於狀態資訊有改變或異常時通知監控應用集模組130進行資料庫/資料表104與監控訊息141之更新或通知網頁介面/手機應用程式101執行異常處理流程。
At step S260, the
第3圖係揭示本發明之監控設備之系統及其方法的實施態樣。 Figure 3 shows the implementation of the monitoring device system and method of the present invention.
在本實施態樣中,監控應用集模組係以ams-應用程式(ams-ap)380實作,並且管理者可透過物聯網網頁(iot-web)311設定物聯網設備(iot-device)310為欲監控之設備(識別碼例如為A288)。而ams-應用程式380係可對應產生格式為「鍵(key)欄位=識別碼:值(value)欄位=上傳週期(分-因子)|數據資料最小上傳次數(min)|數據資料最大上傳次數(Max)|目前狀態資訊(ActiveState)|狀態資訊最後變更時間(State LastTime)」之監控訊息331至訊息快取池(即,redis 330)中。同時,ams-應用程式380復於資料庫(即,postgresql 313)中記錄識別碼為A288之物聯網設備310之監控設定為「要監控」且狀態資訊為上線(online)。
In this embodiment, the monitoring application set module is implemented by ams-application (ams-ap) 380, and the administrator can set the IoT device (iot-device) through the IoT web page (iot-web) 311 310 is the device to be monitored (identification code is for example A288). The ams-
在本實施態樣中,監控訊息快取池及詮釋資料快取池係以相同的訊息快取池實作,如第3圖的redis 330所示,並且監控訊息331及詮釋資料332係分別以M與D之符號作為區分。
In this embodiment, the monitoring message cache and the interpretation data cache are implemented with the same message cache, as shown in
接續於本實施態樣中,數據資料代理人係以原始數據-代理人(rawdata-broker)320實作(例如,以MQTT、Kafka或CoAP等方式設置),而數據處理器係以原始數據-消費者(rawdata-consumer)350實作。並且物聯網設備310的上傳之數據資料可透過原始數據-消費者350訂閱iot.active.rawdata頻道向原始數據-代理人320取得。
Continuing in this embodiment, the data broker is implemented by raw data-broker 320 (for example, set by MQTT, Kafka or CoAP, etc.), and the data processor is based on raw data- The consumer (rawdata-consumer) 350 is implemented. In addition, the data uploaded by the
接續於本實施態樣中,當原始數據-消費者350獲得數據資料後,先檢查redis 330中是否存在鍵(key)欄位為A288的監控訊息331。存在的情況下,係於redis 330中新增或更新格式為「鍵(key)欄位=上傳週期(分-因子)+識別碼:值(value)欄位=目前上傳時間(Data LastTime)|上傳週期之數據資料上傳累積次數(Period Data Count)|上傳週期之初次上傳時間(Period StartTime)」之詮釋資料332,此詮釋資料332的內容亦會由ams-應用程式380記錄於postgresql 313中。
Continuing in this embodiment, after the original data-
在本實施態樣中,輕量轉派器例如以ams-調度者(ams-dispatch)360實作,係經配置以執行前述之輕量化轉派。此時,假設目前時間點為2019年07月09日09點34分00秒,則得到UNIX時間戳為1562636040000毫秒並換算為26043934分鐘。並且假設系統允許設備之最大上傳週期為35天(亦即50400分鐘),則經輕量轉派演算法得出之餘數Cm值為37534分鐘,並進一步找出此Cm的分-因子集合為{1,2,7,14,49,98,383,766,2681,5362,18767,37534}。至此,ams-調度者360可至redis 330中提取對應此分-因子集合之詮釋資料332,例如鍵(key)欄位為{1A287,2B568,...,383K566}等詮釋資料332的集合(其中,A287、B568、K566等皆為識別碼),即為此輪監控服務中欲監控之
對象。此時,ams-調度者360係將提取之詮釋資料332產製為轉派封包並傳送至封包-代理人340。
In this embodiment, the lightweight dispatcher is implemented as ams-dispatch (ams-dispatch) 360, for example, and is configured to perform the aforementioned lightweight dispatch. At this time, assuming that the current time point is 09:34:00 on July 9, 2019, the UNIX timestamp is 1562636040000 milliseconds and converted to 26043934 minutes. And suppose the system allows the maximum upload period of the device to be 35 days (that is, 50400 minutes), then the remainder Cm value obtained by the lightweight transfer algorithm is 37534 minutes, and further find out the sub-factor set of this Cm is { 1,2,7,14,49,98,383,766,2681,5362,18767,37534}. At this point, ams-
在本實施例中,轉派封包代理人係以封包-代理人(packet-broker)340實作(例如,以MQTT、Kafka或CoAP等方式設置),並用於接收ams-調度者360之轉派封包。而監控處理器係以ams-消費者(ams-consumer)370實作,其可訂閱iot-active.dispatch頻道以向封包-代理人340取得轉派封包、分析此轉派封包、對應提取具有與轉派封包相同之識別碼的監控訊息331、並進行轉派封包之檢查。在此情況下,假設檢查到轉派封包內容中上傳週期內數據資料上傳累積次數超出監控訊息331設定的範圍,則呼叫ams-應用程式380並通知此物聯網設備310為「異常(abnormal)」;若是檢查到轉派封包內容之目前上傳時間與初次上傳時間超過上傳週期(例如,某詮釋資料內容為「2F322:1562635875000|2|1562635745000」,且1562635875000>1562635745000+2 * 60* 1000),則呼叫ams-應用程式380並通知此物聯網設備310為「離線(offline)」;若是檢查到轉派封包內容無表示異常或離線狀況(例如,某詮釋資料內容為「2B566:1562635875000|2|156263584000」,且1562635875000<=156263584000+2 * 60* 1000以及數據資料上傳累積次數未超出監控訊息331設定範圍),則此物聯網設備310為正常之「上線(online)」狀態且可忽略此轉派封包。
In this embodiment, the forwarding of the packet broker is implemented as a packet-broker 340 (for example, set by MQTT, Kafka, or CoAP), and is used to receive the forwarding of ams-
此外,ams-應用程式380會將來自ams-消費者370之任何關於物聯網設備310之異常或離線之狀態資訊紀錄於postgresql 313。並且在本實施態樣中,管理者可使用物聯網API 312呼叫ams-應用程式380調閱postgresql 313儲存之物聯網設備310之狀態資訊之歷史紀錄,例如,以報表方式呈現。或者,管理者也可設定物聯網API 312以定期呼叫ams-應用程式380並查詢
postgresql 313儲存之物聯網設備310之狀態資訊之歷史紀錄,並在發現有異常時發送告警訊息(例如,MQTT/簡訊/EMAIL/LINE之訊息通知等)或是啟動警鈴設備。
In addition, the ams-
綜上所述,本發明之監控設備之系統及其方法係藉由多工的監控處理器、數據處理器、及監控應用集模組,同時執行多個物聯網設備之設定、數據資料之處理及物聯網設備之監控服務等作業,且僅需根據物聯網設備上傳數據資料之週期及頻率等資訊即可判斷物聯網設備之狀態資訊,故只要是能上傳數據資料至物聯網平台之物聯網設備皆能被監控,不需受限於物聯網設備的設置限制。另外,藉由執行輕量化轉派以於不同時間點挑選適合被監控應用集模組監控的物聯網設備,可達到僅用少量的資源監控大量的物聯網設備數據,進而大幅提升監控服務的效率。 In summary, the monitoring device system and method of the present invention uses multiplexed monitoring processors, data processors, and monitoring application set modules to simultaneously execute the settings of multiple IoT devices and the processing of data data. And the monitoring service of the Internet of Things equipment and other operations, and only need to judge the status information of the Internet of Things equipment based on the period and frequency of the data uploaded by the Internet of Things equipment, so as long as it is the Internet of Things that can upload data to the Internet of Things platform All devices can be monitored without being restricted by the setting restrictions of IoT devices. In addition, by performing lightweight transfers to select IoT devices suitable for monitoring by the monitored application set module at different points in time, it is possible to monitor a large number of IoT device data with only a small amount of resources, thereby greatly improving the efficiency of monitoring services .
上述實施例僅例示性說明本案之功效,而非用於限制本案,任何熟習此項技藝之人士均可在不違背本案之精神及範疇下對上述該些實施態樣進行修飾與改變。因此本案之權利保護範圍,應如後述之申請專利範圍所列。 The above-mentioned embodiments are only illustrative of the effects of the present case, and are not used to limit the present case. Anyone familiar with this technique can modify and change the above-mentioned implementation aspects without departing from the spirit and scope of the present case. Therefore, the scope of protection of the rights in this case should be listed in the scope of patent application described later.
101:網頁介面/手機應用程式 101: Web interface/mobile application
102:物聯網設備 102: IoT devices
103:數據資料 103: Data Sheet
104:資料庫/資料表 104: database/table
110:數據資料代理人 110: Data Agent
120:數據處理器 120: data processor
130:監控應用集模組 130: Monitoring application set module
140:監控訊息快取池 140: Monitor message cache
141:監控訊息 141: Monitoring message
150:詮釋資料快取池 150: Interpretation data cache
151:詮釋資料 151: Interpretation of Data
160:輕量轉派器 160: Lightweight Dispatcher
170:轉派封包代理人 170: Assign a packet agent
180:監控處理器 180: monitor processor
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109105004A TWI740380B (en) | 2020-02-17 | 2020-02-17 | Monitoring equipment system and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109105004A TWI740380B (en) | 2020-02-17 | 2020-02-17 | Monitoring equipment system and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202133108A TW202133108A (en) | 2021-09-01 |
TWI740380B true TWI740380B (en) | 2021-09-21 |
Family
ID=78777635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109105004A TWI740380B (en) | 2020-02-17 | 2020-02-17 | Monitoring equipment system and method thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI740380B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410662A (en) * | 2014-10-23 | 2015-03-11 | 山东大学 | Parallel mass data transmitting middleware of Internet of things and working method thereof |
US20160359872A1 (en) * | 2015-06-05 | 2016-12-08 | Cisco Technology, Inc. | System for monitoring and managing datacenters |
CN106254437A (en) * | 2016-07-28 | 2016-12-21 | 普奥云信息科技(北京)有限公司 | Internet of Things communication means |
CN106294865A (en) * | 2016-08-23 | 2017-01-04 | 复旦大学无锡研究院 | Multivariate data perception computing engines and middleware data processing method thereof |
US20170083386A1 (en) * | 2015-09-17 | 2017-03-23 | Salesforce.Com, Inc. | PROCESSING EVENTS GENERATED BY INTERNET OF THINGS (IoT) |
TW201814546A (en) * | 2016-10-13 | 2018-04-16 | 香港商阿里巴巴集團服務有限公司 | Device component loading method, apparatus and internet of things system |
-
2020
- 2020-02-17 TW TW109105004A patent/TWI740380B/en active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410662A (en) * | 2014-10-23 | 2015-03-11 | 山东大学 | Parallel mass data transmitting middleware of Internet of things and working method thereof |
US20160359872A1 (en) * | 2015-06-05 | 2016-12-08 | Cisco Technology, Inc. | System for monitoring and managing datacenters |
US20170083386A1 (en) * | 2015-09-17 | 2017-03-23 | Salesforce.Com, Inc. | PROCESSING EVENTS GENERATED BY INTERNET OF THINGS (IoT) |
CN106254437A (en) * | 2016-07-28 | 2016-12-21 | 普奥云信息科技(北京)有限公司 | Internet of Things communication means |
CN106294865A (en) * | 2016-08-23 | 2017-01-04 | 复旦大学无锡研究院 | Multivariate data perception computing engines and middleware data processing method thereof |
TW201814546A (en) * | 2016-10-13 | 2018-04-16 | 香港商阿里巴巴集團服務有限公司 | Device component loading method, apparatus and internet of things system |
Also Published As
Publication number | Publication date |
---|---|
TW202133108A (en) | 2021-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11843505B1 (en) | System and method of generation of a predictive analytics model and performance of centralized analytics therewith | |
US9473348B2 (en) | Method and system for detecting changes in a network using simple network management protocol polling | |
CN107390650A (en) | A kind of data collecting system based on Internet of Things and the data compression method based on the system | |
CN103152352A (en) | Perfect information security and forensics monitoring method and system based on cloud computing environment | |
CN103546343B (en) | The network traffics methods of exhibiting of network traffic analysis system and system | |
CN111163159B (en) | Message subscription method, device, server and computer readable storage medium | |
CN102045197B (en) | Alarm data synchronization method and network management system | |
CN109005528A (en) | A kind of bluetooth mesh gateway data polymerization report method | |
CN111064591B (en) | Data aggregation method, device, equipment, storage medium and system | |
CN112162829B (en) | Resource monitoring data preprocessing system under edge computing scene | |
CN111049673A (en) | Method and system for counting and monitoring API call in service gateway | |
WO2024060408A1 (en) | Network attack detection method and apparatus, device and storage medium | |
CN108924007A (en) | The big data acquisition of communication operation information and storage system and method | |
CN107179977A (en) | Database Full-automatic monitoring system based on mpm models | |
CN114039892B (en) | Network jitter analysis and visualization method and system | |
CN116389156A (en) | Real-time abnormality detection system in large-data-volume environment | |
TWI740380B (en) | Monitoring equipment system and method thereof | |
CN113890903A (en) | Alarm information management system and method | |
US20200244773A1 (en) | Method and system for streaming management information base data using simple network management protocol | |
CN112583895A (en) | TCP communication method, system and device | |
CN113873033A (en) | Intelligent edge computing gateway platform with fault-tolerant function | |
CN113055490A (en) | Data storage method and device | |
CN112564984A (en) | Distributed safe operation and maintenance method of Internet of things based on big data | |
CN113848834A (en) | Workshop equipment access system and method based on edge cloud cooperation | |
US20030225936A1 (en) | Application program interface to collect alarm/event data |