TW202001557A - Data correcting system and method and data correcting device thereof - Google Patents
Data correcting system and method and data correcting device thereof Download PDFInfo
- Publication number
- TW202001557A TW202001557A TW107121363A TW107121363A TW202001557A TW 202001557 A TW202001557 A TW 202001557A TW 107121363 A TW107121363 A TW 107121363A TW 107121363 A TW107121363 A TW 107121363A TW 202001557 A TW202001557 A TW 202001557A
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- cyclic redundancy
- redundancy check
- repair
- solar energy
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
Description
本發明是有關於一種資料修補系統、方法及其資料修補裝置,且特別是有關於一種使用於太陽能模組陣列之資料修補系統、方法及其資料修補裝置。The present invention relates to a data repair system, method and data repair device, and in particular to a data repair system, method and data repair device used in a solar module array.
自動控制系統常常需要透過通訊方式,來取得設備的資料或進行監控設備的動作。最常使用於自動控制系統之通訊協定係為Modbus通訊協定。然而,於監控系統中,通訊品質的好壞往往決定了整體監控系統的穩定程度。降低通訊異常將有助於降低設備的響應時間及增加系統資料的即時性。太陽能案場因為通訊距離較長,故使用RS485線材及Modbus通訊協定作資料查詢及狀態監控。太陽能案場常因佈線規劃不佳,使得設備本身或環境因素產生線路干擾,而在資料通訊過程中產生雜訊而通訊失敗,導致資料蒐集不齊全,無法獲得即時與正確的資料。因此,如何有效地將受雜訊干擾的資料修補復原,並通知使用者太陽能案場的佈線可能有問題,實乃目前業界所致力的方向之一。The automatic control system often needs to obtain the data of the equipment or carry out the monitoring equipment through communication. The communication protocol most commonly used in automatic control systems is the Modbus communication protocol. However, in the monitoring system, the quality of communication often determines the stability of the overall monitoring system. Reducing communication anomalies will help reduce the response time of the device and increase the immediacy of system data. Because of the long communication distance, the solar case uses RS485 wire and Modbus communication protocol for data query and status monitoring. In the solar case, poor wiring planning often leads to line interference caused by the equipment itself or environmental factors. However, noise is generated during data communication and communication fails, resulting in incomplete data collection and failure to obtain real-time and correct data. Therefore, how to effectively repair and recover the data interfered by noise, and notify the user that there may be problems with the wiring of the solar case, is actually one of the directions the industry is committed to.
本發明係有關於一種資料修補系統、方法及其資料修補裝置。藉由資料修補裝置執行過濾雜訊演算法,可以讓來自太陽能模組陣列之太陽能資料的雜訊被過濾。而藉由資料修補裝置執行資料修補演算法,使得太陽能資料因線路或環境干擾所導致的資料錯誤可以得到修復。如此,可以提升通訊品質,改善系統的穩定程度。並且可以獲得即時與正確的資料,以增加系統之資料的即時性。The invention relates to a data repairing system, method and data repairing device. The noise filtering algorithm from the solar module array can be filtered by the data patching device executing the noise filtering algorithm. The data repairing algorithm is executed by the data repairing device, so that the data errors caused by the line or environmental interference of the solar energy data can be repaired. In this way, the communication quality can be improved and the stability of the system can be improved. And can obtain real-time and correct data to increase the real-time nature of the system's data.
根據本發明之第一方面,提出一種資料修補系統,包括一太陽能模組陣列、一資料修補裝置、以及一太陽能資料收集器。太陽能模組陣列用以傳送一太陽能資料。資料修補裝置用以接收太陽能資料,並判斷太陽能資料是否通過一過濾雜訊演算法。若此資料修補裝置判斷此太陽能資料通過此過濾雜訊演算法,則產生一過濾資料。資料修補裝置判斷此過濾資料是否通過一循環冗餘校驗(cyclic redundancy check,CRC)檢查。若資料修補裝置判斷過濾資料不通過循環冗餘校驗檢查,則以一資料修補演算法修補此過濾資料,以產生一修補資料。資料修補裝置將修補資料進行循環冗餘校驗檢查。若修補資料通過此循環冗餘校驗檢查,則視為完成資料修補。而太陽能資料收集器則是用以接收此修補資料。According to the first aspect of the present invention, a data repair system is proposed, which includes a solar module array, a data repair device, and a solar data collector. The solar module array is used to transmit a solar energy data. The data patching device is used to receive solar energy data and determine whether the solar energy data passes a filtering noise algorithm. If the data patching device determines that the solar data passes the filtering noise algorithm, a filtered data is generated. The data repairing device judges whether the filtered data passes a cyclic redundancy check (CRC) check. If the data repairing device determines that the filtered data does not pass the cyclic redundancy check, it repairs the filtered data with a data repair algorithm to generate a repaired data. The data repairing device performs cyclic redundancy check on the repaired data. If the repaired data passes this cyclic redundancy check check, it is deemed that the repaired data is completed. The solar data collector is used to receive the patch data.
根據本發明之第二方面,提出一種資料修補方法,包括以下步驟。接收一太陽能資料,並判斷太陽能資料是否通過一過濾雜訊演算法。若判斷太陽能資料通過過濾雜訊演算法,則產生一過濾資料,並判斷過濾資料是否通過一循環冗餘校驗檢查。若判斷過濾資料不通過循環冗餘校驗檢查,則以一資料修補演算法修補過濾資料,以產生一修補資料。將修補資料進行循環冗餘校驗檢查。若修補資料通過循環冗餘校驗檢查,則視為完成資料修補。傳送修補資料至一太陽能資料收集器。According to the second aspect of the present invention, a data repair method is proposed, including the following steps. Receive a solar energy data, and determine whether the solar energy data passes a filtering noise algorithm. If it is judged that the solar energy data passes the filtering noise algorithm, a filtering data is generated, and it is judged whether the filtering data passes a cyclic redundancy check check. If it is judged that the filtered data does not pass the cyclic redundancy check check, the filtered data is repaired with a data repair algorithm to generate a repaired data. Check the patch data for cyclic redundancy check. If the repaired data passes the cyclic redundancy check, it is deemed that the repaired data is completed. Send repair data to a solar energy data collector.
根據本發明之第三方面,提出一種資料修補裝置,包括一收發單元及一處理單元。收發單元用以接收一太陽能模組陣列傳送之一太陽能資料。處理單元則是用以判斷太陽能資料是否通過一過濾雜訊演算法,若處理單元判斷太陽能資料通過過濾雜訊演算法,則產生一過濾資料。處理單元更判斷過濾資料是否通過一循環冗餘校驗檢查。若處理單元判斷過濾資料不通過循環冗餘校驗檢查,則以一資料修補演算法修補過濾資料,以產生一修補資料。處理單元將修補資料進行循環冗餘校驗檢查。若修補資料通過循環冗餘校驗檢查,則視為完成資料修補。According to a third aspect of the present invention, a data repair device is provided, which includes a transceiver unit and a processing unit. The transceiver unit is used to receive solar energy data transmitted by a solar module array. The processing unit is used to determine whether the solar energy data passes a noise filtering algorithm. If the processing unit determines that the solar energy data passes the noise filtering algorithm, a filtering data is generated. The processing unit further determines whether the filtered data passes a cyclic redundancy check. If the processing unit judges that the filtered data does not pass the cyclic redundancy check check, it repairs the filtered data with a data repair algorithm to generate a repaired data. The processing unit performs cyclic redundancy check on the repaired data. If the repaired data passes the cyclic redundancy check, it is deemed that the repaired data is completed.
為了對本發明之上述及其他方面有更佳的瞭解,下文特舉實施例,並配合所附圖式詳細說明如下:In order to have a better understanding of the above and other aspects of the present invention, the following examples are specifically described in conjunction with the accompanying drawings as follows:
請參照第1圖,其繪示乃依照本發明一較佳實施例之一種資料修補系統的方塊圖。資料修補系統100包括一太陽能模組陣列102、一資料修補裝置104、及一太陽能資料收集器106。太陽能模組陣列102係用以傳送一太陽能資料SD。資料修補裝置104係用以接收太陽能資料SD,並判斷太陽能資料SD是否通過一過濾雜訊演算法。若資料修補裝置104判斷太陽能資料SD通過過濾雜訊演算法,則產生一過濾資料FD。資料修補裝置104並判斷過濾資料FD是否通過一循環冗餘校驗(cyclic redundancy check,CRC)檢查。若資料修補裝置104判斷過濾資料FD不通過此循環冗餘校驗檢查,則以一資料修補演算法修補過濾資料FD,以產生一修補資料MD。資料修補裝置104將修補資料MD進行循環冗餘校驗檢查。若修補資料MD通過循環冗餘校驗檢查,則視為完成資料修補。太陽能資料收集器106則是用以接收此修補資料MD。Please refer to FIG. 1, which illustrates a block diagram of a data repair system according to a preferred embodiment of the present invention. The
藉由資料修補裝置104執行過濾雜訊演算法,可以讓來自太陽能模組陣列102之太陽能資料SD的雜訊被過濾。而藉由資料修補裝置104執行資料修補演算法,使得太陽能資料SD因線路或環境干擾所導致的資料錯誤可以得到修復。如此,可以提升通訊品質,改善系統的穩定程度。並且可以獲得即時與正確的資料,以增加系統之資料的即時性。By performing the noise filtering algorithm by the
其中,當資料修補裝置104判斷太陽能資料SD無法通過上述之過濾雜訊演算法,則發出一無法過濾警示訊息Alrt1至一雲端伺服器108。雲端伺服器108再將此無法過濾警示訊息Alrt1傳送至一太陽能監控系統110。太陽能監控系統110例如可藉由一顯示器或一行動裝置來顯示對應至無法過濾警示訊息Alrt1的信號,例如是提醒訊息(例如是一個警示訊息)、提醒聲響、或提醒用光訊號,以讓使用者得知太陽能資料SD因為雜訊過多無法濾除,故無法通過上述之過濾雜訊演算法。藉由此無法過濾警示訊息Alrt1,使用者將可得知太陽能模組陣列102可能有佈線規劃不佳,或太陽能模組本身有問題,或是因為環境因素而產生線路干擾,而在資料傳送過程中產生雜訊而通訊失敗。因此,此無法過濾警示訊息Alrt1將可提醒使用者太陽能模組陣列102的佈線或設備可能有問題,而需進行檢查。When the
若修補資料MD無法通過循環冗餘校驗檢查,則資料修補裝置104發出無法修補警示訊息Alrt2至雲端伺服器108。雲端伺服器108再將此無法過濾警示訊息Alrt2傳送至太陽能監控系統110,以讓使用者得知太陽能資料SD資料有誤且無法修補。藉由此無法修補警示訊息Alrt2,使用者將可得知太陽能模組陣列102本身或是傳送資料之線路可能有問題,而在資料傳送過程中產生資料錯誤。因此,此無法修補警示訊息Alrt2將可提醒使用者太陽能模組陣列102的佈線或設備可能有問題,而需進行檢查。If the patched data MD fails the cyclic redundancy check, the
太陽能資料收集器106更用以發出一資料取得命令Rqst,使資料修補裝置104通知太陽能模組陣列102回傳對應此資料取得命令Rqst的太陽能資料SD。太陽能資料收集器106例如可以在太陽能監控系統110的控制之下,於使用者希望瞭解太陽能模組陣列102的狀態時,發出此資料取得命令Rqst,以要求太陽能模組陣列102回傳對應此資料取得命令Rqst的太陽能資料SD。The
茲將上述之資料修補系統100進一步說明如下。請參照第2圖,其繪示乃依照本發明較佳實施例之資料修補系統100的詳細結構之一例的方塊圖。資料修補裝置104例如包括一收發單元202及一處理單元204。收發單元202用以接收太陽能模組陣列102傳送之太陽能資料SD。處理單元204則是用以判斷太陽能資料SD是否通過過濾雜訊演算法。若處理單元204判斷太陽能資料SD通過過濾雜訊演算法,則處理單元204產生過濾資料FD。處理單元204並判斷過濾資料FD是否通過循環冗餘校驗檢查。若處理單元204判斷過濾資料FD不通過循環冗餘校驗檢查,則以資料修補演算法修補過濾資料FD,以產生修補資料MD。處理單元204將修補資料MD進行循環冗餘校驗檢查。若修補資料MD通過循環冗餘校驗檢查,則視為完成資料修補。The above-mentioned
當處理單元204判斷太陽能資料SD無法通過過濾雜訊演算法,則處理單元204發出無法過濾警示訊息Alrt1至雲端伺服器108。若處理單元204判斷修補資料MD無法通過循環冗餘校驗檢查,則處理單元204發出無法修補警示訊息Alrt2至雲端伺服器108。When the
上述之處理單元例如是可以執行程式碼的處理器或中央處理器(CPU),或其他具有控制、處理、運算功能的硬體或韌體。而收發單元則例如為可以接受或發送訊號的硬體或電路。The aforementioned processing unit is, for example, a processor or a central processing unit (CPU) that can execute program code, or other hardware or firmware with control, processing, and arithmetic functions. The transceiver unit is, for example, hardware or a circuit that can receive or send signals.
資料修補裝置104更包括一警示裝置206,用以於處理單元204發出無法過濾警示訊息Alrt1或無法修補警示訊息Alrt2時,發出一警示提醒信號。此警示提醒信號可為一光信號及一聲音信號二者至少其中之一。例如,警示裝置206可以是一發光二極體(Light Emitting Diode, LED)燈,上述之光信號例如為某種顏色之LED燈點亮時所發出的光線,以提醒使用者注意。此光信號也可以是某種頻率的閃光信號。警示裝置206例如也可以是一警鈴,而上述之聲音信號則可以例如是警鈴聲,以提醒使用者注意。The
太陽能模組陣列102、資料修補裝置104、及太陽能資料收集器106例如是透過RS485串口(serial port)來彼此通信。於太陽能模組陣列102中,每個太陽能模組亦可各自包含一個逆變器(Inverter)或者分別與一個逆變器電性連接,以將太陽能模組所產生的直流(DC)訊號轉為交流(AC)訊號。資料修補裝置104及太陽能資料收集器106例如是透過網路路由器(未繪示)來將資料傳送至雲端伺服器108。The
茲將資料修補系統100所使用之資料修補方法進一步說明如下。請參照第3A圖,其繪示乃依照本發明一較佳實施例之一種資料修補方法的流程圖。本實施例之資料修補方法包括以下步驟。首先,於步驟302,接收太陽能資料SD。接著,進入步驟304,判斷此太陽能資料SD是否通過過濾雜訊演算法。於步驟304中,若判斷太陽能資料SD通過過濾雜訊演算法,則進入步驟306,產生過濾資料FD。而當判斷太陽能資料SD無法通過此過濾雜訊演算法時,則進入步驟316,發出無法過濾警示訊息Alrt1至雲端伺服器108。The data repair method used by the
於步驟306之後,接著執行步驟308,判斷過濾資料FD是否通過循環冗餘校驗檢查。於步驟308中,若判斷過濾資料FD不通過循環冗餘校驗檢查,則進入步驟310,以資料修補演算法修補過濾資料FD,以產生修補資料MD。然後,執行步驟312,將此修補資料MD進行循環冗餘校驗檢查。After step 306,
於步驟312中,若修補資料MD通過循環冗餘校驗檢查,則進入步驟314,視為完成資料修補,並傳送此修補資料MD至太陽能資料收集器106。於步驟312中,若修補資料MD無法通過此循環冗餘校驗檢查,則進入步驟318,發出無法修補警示訊息Alrt2至雲端伺服器108。In
茲將上述之過濾雜訊演算法進一步說明如下。請參照第4圖,其繪示乃依照本發明較佳實施例之資料修補裝置104所執行之過濾雜訊演算法之一例的示意圖。資料修補裝置104於接收太陽能資料SD後,藉由過濾雜訊演算法以找出太陽能資料SD的一標頭部分402,並根據標頭部分402擷取太陽能資料SD的一資料部分404及一循環冗餘校驗碼部分406,藉此過濾雜訊。The noise filtering algorithm described above is further described below. Please refer to FIG. 4, which is a schematic diagram of an example of a noise filtering algorithm executed by the
更進一步來說,過濾雜訊演算法例如是依照太陽能資料收集器106所發出之資料取得命令Rqst的內容值,來找出太陽能資料SD的標頭部分402。以Modbus通訊協定為例,如第4圖所示,資料取得命令Rqst的第[0]個位元組定義了從屬裝置之位址(Slave address),假設其十六進位之內容值例如為01,代表此資料取得命令Rqst係為對應至太陽能模組陣列102中,位址為01之太陽能模組或太陽能模組的逆變器。資料取得命令Rqst的第[1]個位元組定義了此資料取得命令Rqst所對應的功能(Function),假設其十六進位之內容值例如為03,代表此資料取得命令Rqst係為針對內容值03所對應的功能。Furthermore, the noise filtering algorithm is, for example, based on the content value of the data acquisition command Rqst issued by the solar
於太陽能資料收集器106發出資料取得命令Rqst之後,資料修補裝置104係通知太陽能模組陣列102回傳對應此資料取得命令Rqst的太陽能資料SD,如第4圖所示。太陽能資料SD的第[0]個位元組定義了從屬裝置之位址,假設其十六進位之內容值例如為01,代表此太陽能資料SD係為對應至太陽能模組陣列102中,位址為01之太陽能模組或太陽能模組的逆變器。太陽能資料SD的第[1]個位元組定義了此太陽能資料SD所對應的功能,假設其十六進位之內容值例如為03,代表此太陽能資料SD係為針對內容值03所對應的功能。After the
於本實施例之過濾雜訊演算法中,例如是依照太陽能資料收集器106所發出之資料取得命令Rqst的第[0]個位元組之內容值01與第[1]個位元組內容值03,來找出太陽能資料SD的標頭部分402,亦即是太陽能資料SD的第[0]個位元組與第[1]個位元組。也就是,本實施例之過濾雜訊演算法係從包含有太陽能資料SD的一串資料中,找到內容值為01與03的部分,來找出太陽能資料SD的標頭部分402。接著,從內容值為01與03的位元組之後的下一個位元組(亦即是太陽能資料SD的第[2]個位元組)可以得知,資料部分的位元組個數為04,意指接下來的四個位元組皆為資料位元組,而得到資料部分404。而資料部分404接下來的兩個位元組則為循環冗餘校驗碼,而可得到循環冗餘校驗碼部分406。如此,即可得到太陽能資料SD的完整資料。這樣一來,即可得知包含有太陽能資料SD的一串資料中,於標頭部分402前面的部分係為雜訊,且於循環冗餘校驗碼部分406之後的部分亦為雜訊,過濾雜訊演算法可將這些雜訊濾除,而得到太陽能資料SD。In the noise filtering algorithm of this embodiment, for example, according to the data acquisition command Rqst issued by the
若資料修補裝置104無法依照上述方法,根據資料取得命令Rqst的第[0]個位元組之內容值01與第[1]個位元組內容值03,來找出太陽能資料SD的標頭部分402的話,則 則資料修補裝置104亦無法根據標頭部分402擷取太陽能資料SD的資料部分404及循環冗餘校驗碼部分406,而無法過濾雜訊。此時,資料修補裝置104判斷太陽能資料SD無法通過上述之過濾雜訊演算法,而將會發出無法過濾警示訊息Alrt1至雲端伺服器108。If the
茲將上述之資料修補演算法進一步說明如下。請同時參考第3B圖,其繪示乃第3A圖中步驟310的詳細流程圖。如第3B圖之流程圖所示,資料修補演算法包含一標頭比對法320、一資料比對法322及一循環冗餘校驗比對法324。請參照第5至7圖,其中第5圖繪示依照本發明較佳實施例之資料修補裝置所執行之資料修補演算法之標頭比對法之一例的示意圖;第6圖繪示依照本發明較佳實施例之資料修補裝置所執行之資料修補演算法之資料比對法之一例的示意圖;第7圖繪示依照本發明較佳實施例之資料修補裝置所執行之資料修補演算法之循環冗餘校驗比對法之一例的示意圖。The above data patching algorithm is further explained below. Please also refer to FIG. 3B, which is a detailed flowchart of step 310 in FIG. 3A. As shown in the flowchart of FIG. 3B, the data patching algorithm includes a
如第3B圖之步驟320所示,標頭比對法將此太陽能資料SD(亦即是將太陽能資料SD藉由過濾雜訊演算法過濾雜訊號所得到的過濾資料FD)的一標頭部分與多個已知標頭進行比對,並標示出此些已知標頭中的至少一正確標頭,此至少一正確標頭對應到至少一第一已知資料,如第3B圖之步驟326所示。以第5圖所示之資料DX為例,標頭比對法係將資料DX的標頭部分(位元組索引值為[0]至[2]的內容值01、03及14)分別與一正確資料表之的資料D1至資料D10的多個已知標頭進行比對(位元組索引值為[0]至[2]的內容值),並找出與DX的標頭部分中的至少一個位元組之內容值相同的至少一正確標頭。於第5圖的例子中,資料D1至資料D10的標頭的位元組索引值為[0]與[1]的內容值為01與03(如粗線框線所框示),其係與資料DX的標頭部分的位元組索引值為[0]與[1]的內容值01與03相同。資料D1至資料D10的標頭的位元組索引值為[0]至[2]內容值的三個位元組中,只要有一個位元組的內容值與資料DX之對應的標頭部分的位元組之內容值相同,即可被選為正確標頭。於本例中,所得到之至少一正確標頭例如是資料D1至資料D10的標頭。這些標頭係對應到多個第一已知資料,亦即是資料D1至資料D10。其中,上述之正確資料表例如是記錄了最近10筆成功傳輸的正確資料D1至D10。As shown in
如第3B圖之步驟322所示,資料比對法將太陽能資料SD(或過濾資料FD)的一資料部分與多個已知資料組進行比對,並標示出此些已知資料組中的至少一正確資料組,此至少一正確資料組對應到至少一第二已知資料,如第3B圖之步驟328所示。以第6圖所示之資料DX為例,資料比對法係將資料DX的資料部分(位元組索引值為[3]至[6]的內容值FF、FF、FA、0A)分別與正確資料表之資料D1至資料D10的多個已知資料組進行比對(位元組索引值為[3]至[6]的內容值),並找出與DX的資料部分中的至少一個位元組之內容值相同的至少一正確資料組。於第6圖的例子中,資料D2之位元組索引值為[6]的內容值0A與資料DX的資料部分的位元組索引值為[6]的內容值0A相同,而資料D5之位元組索引值為[4]的內容值FF與資料DX的資料部分的位元組索引值為[4]的內容值FF相同,如粗線框線所框示。故資料D2之資料組與資料D5之資料組被選為正確資料組。於本例中,所得到之至少一正確資料組例如是資料D2與資料D5的資料組。這些資料組係對應到多個第二已知資料,亦即是資料D2與資料D5。As shown in
如第3B圖之步驟324所示,循環冗餘校驗比對法將太陽能資料SD(或過濾資料FD)的一循環冗餘校驗碼部分與多個已知循環冗餘校驗碼進行比對,並標示出此些已知循環冗餘校驗碼中的至少一正確循環冗餘校驗碼,此至少一正確循環冗餘校驗碼對應到至少一第三已知資料,如第3B圖之步驟330所示。以第7圖所示之資料DX為例,循環冗餘校驗比對法係將資料DX的循環冗餘校驗碼部分(位元組索引值為[7]至[8]的內容值CB與FF)分別與正確資料表之資料D1至資料D10的多個已知循環冗餘校驗碼進行比對(位元組索引值為[7]至[8]的內容值),並找出與DX的循環冗餘校驗碼部分中的至少一個位元組之內容值相同的至少一正確循環冗餘校驗碼。於第7圖的例子中,資料D5之位元組索引值為[7]的內容值CB與資料DX的循環冗餘校驗碼部分的位元組索引值為[7]的內容值CB相同,如粗線框線所框示,故資料D5之循環冗餘校驗碼被選為正確循環冗餘校驗碼。於本例中,所得到之至少一正確循環冗餘校驗碼例如是資料D5的循環冗餘校驗碼。此至少一正確循環冗餘校驗碼係對應到至少一個第三已知資料,亦即是資料D5。As shown in
資料修補裝置104或資料修補裝置104的處理單元204依據此至少一第一已知資料、此至少一第二已知資料及此至少一第三已知資料以比對出重複次數最高者作為此修補資料MD,並且判斷是否可以得到此修補資料MD,如第3B圖之步驟332所示。由第5圖至第7圖的例子可知,至少一第一已知資料包括資料D1至D10,至少一第二已知資料包括資料D2與D5,而至少一第三已知資料則包括資料D5。其中,重複次數最高者係為資料D5,因此資料D5係作為上述之修補資料MD,如於第3B圖之步驟332所示。According to the at least one first known data, the at least one second known data, and the at least one third known data, the
於第3B圖之步驟332之產生修補資料MD並判斷修補資料MD是否產生的步驟中,若已得到此修補資料MD,例如是上例中的資料D5,則進入步驟312,將此修補資料MD(亦即是資料D5)進行循環冗餘校驗檢查。例如是將資料D5的標頭(位元組索引值為[0]至[2]的內容值)與資料組(位元組索引值為[3]至[6]的內容值)進行循環冗餘校驗之一特定運算,以得到二個位元組的循環冗餘校驗碼,再與資料D5的循環冗餘校驗碼的二個位元組相較。若相同,則代表此修補資料MD(亦即是資料D5)通過循環冗餘校驗檢查。In the step of generating the repair data MD and determining whether the repair data MD is generated in
於第3B圖之步驟332之產生修補資料MD並判斷修補資料MD是否產生的步驟中,若無法得到此修補資料MD,則進入步驟318,由資料修補裝置104或資料修補裝置104之處理單元204發出無法修補警示訊息Alrt2至雲端伺服器108。In the step of generating the repair data MD and determining whether the repair data MD is generated in
於另一實施例中,亦可以於得到至少一第一已知資料、至少一第二已知資料、及至少一第三已知資料時,就先進行循環冗餘校驗檢查。再將通過循環冗餘校驗檢查的至少一第一已知資料、至少一第二已知資料、及至少一第三已知資料中找出相同者以作為修補完成的正確資料。In another embodiment, when at least one first known data, at least one second known data, and at least one third known data are obtained, a cyclic redundancy check may be performed first. Then, at least one first known data, at least one second known data, and at least one third known data that have passed the cyclic redundancy check are found to be the same as the correct data after the repair is completed.
於更另一實施中,資料修補裝置104可以更具有一錯誤計數器。於比對上述之至少一第一已知資料、至少一第二已知資料、及至少一第三已知資料,並判斷是否有相同的資料之後,同時將此錯誤計數器的計數值加1。當錯誤計數器的計數值大於一臨界值時,則資料修補裝置104發送一錯誤過多警示訊息至雲端伺服器108以傳送至太陽能監控系統110來提醒使用者。In still another implementation, the
本發明實施例藉由資料修補裝置執行過濾雜訊演算法,可以讓來自太陽能模組陣列之太陽能資料的雜訊被過濾。而藉由資料修補裝置執行資料修補演算法,使得太陽能資料因線路或環境干擾所導致的資料錯誤可以得到修復。如此,可以提升通訊品質,改善系統的穩定程度。並且可以獲得即時與正確的資料,以增加系統之資料的即時性。In the embodiment of the present invention, the noise filtering algorithm from the solar module array can be filtered by the data patching device executing the noise filtering algorithm. The data repairing algorithm is executed by the data repairing device, so that the data errors caused by the line or environmental interference of the solar energy data can be repaired. In this way, the communication quality can be improved and the stability of the system can be improved. And can obtain real-time and correct data to increase the real-time nature of the system's data.
而且,當資料修補裝置判斷太陽能資料無法通過上述之過濾雜訊演算法,則發出一無法過濾警示訊息至雲端伺服器,並傳送至太陽能監控系統以提醒使用者。若修補資料無法通過循環冗餘校驗檢查,則資料修補裝置發出無法修補警示訊息至雲端伺服器,並傳送至太陽能監控系統,以讓使用者得知太陽能資料有誤且無法修補。當使用者收到警示訊息之後,使用者將可得知太陽能模組陣列本身或是傳送資料之線路可能有問題,而儘早掌握時效進行檢查。Moreover, when the data patching device judges that the solar energy data cannot pass the above-mentioned filtering noise algorithm, it sends an unfilterable warning message to the cloud server and sends it to the solar energy monitoring system to remind the user. If the repaired data cannot pass the cyclic redundancy check check, the data repairing device sends a repair failure warning message to the cloud server and sends it to the solar monitoring system to let the user know that the solar data is wrong and cannot be repaired. After the user receives the warning message, the user will know that there may be a problem with the solar module array itself or the data transmission line, and grasp the time limit as soon as possible to check.
綜上所述,雖然本發明已以實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。In summary, although the present invention has been disclosed as above with examples, it is not intended to limit the present invention. Those with ordinary knowledge in the technical field to which the present invention belongs can make various modifications and retouching without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be deemed as defined by the scope of the attached patent application.
100‧‧‧資料修補系統102‧‧‧太陽能模組陣列104‧‧‧資料修補裝置106‧‧‧太陽能資料收集器108‧‧‧雲端伺服器110‧‧‧太陽能監控系統202‧‧‧收發單元204‧‧‧處理單元206‧‧‧警示裝置302~332‧‧‧流程步驟100‧‧‧
第1圖繪示依照本發明一較佳實施例之一種資料修補系統的方塊圖。 第2圖繪示依照本發明較佳實施例之資料修補系統的詳細結構之一例的方塊圖。 第3A圖繪示乃依照本發明一較佳實施例之一種資料修補方法的流程圖。 第3B圖繪示乃第3A圖中步驟310的詳細流程圖。 第4圖繪示依照本發明較佳實施例之資料修補裝置所執行之過濾雜訊演算法之一例的示意圖。 第5圖繪示依照本發明較佳實施例之資料修補裝置所執行之資料修補演算法之標頭比對法之一例的示意圖。 第6圖繪示依照本發明較佳實施例之資料修補裝置所執行之資料修補演算法之資料比對法之一例的示意圖。 第7圖繪示依照本發明較佳實施例之資料修補裝置所執行之資料修補演算法之循環冗餘校驗比對法之一例的示意圖。FIG. 1 shows a block diagram of a data repair system according to a preferred embodiment of the present invention. FIG. 2 is a block diagram showing an example of a detailed structure of a data repair system according to a preferred embodiment of the present invention. FIG. 3A shows a flowchart of a data repair method according to a preferred embodiment of the present invention. FIG. 3B shows a detailed flowchart of step 310 in FIG. 3A. FIG. 4 is a schematic diagram showing an example of a noise filtering algorithm executed by the data repairing device according to the preferred embodiment of the present invention. FIG. 5 is a schematic diagram showing an example of a header comparison method of a data repair algorithm executed by a data repair device according to a preferred embodiment of the present invention. FIG. 6 is a schematic diagram showing an example of a data comparison method of a data repair algorithm executed by a data repair device according to a preferred embodiment of the present invention. 7 is a schematic diagram showing an example of a cyclic redundancy check comparison method of a data repair algorithm executed by a data repair device according to a preferred embodiment of the present invention.
302~332‧‧‧流程步驟 302~332‧‧‧Process steps
Claims (20)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107121363A TWI697771B (en) | 2018-06-21 | 2018-06-21 | Data correcting system and method and data correcting device thereof |
CN201811034538.9A CN109150404B (en) | 2018-06-21 | 2018-09-05 | Data patching system, method and data patching device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107121363A TWI697771B (en) | 2018-06-21 | 2018-06-21 | Data correcting system and method and data correcting device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202001557A true TW202001557A (en) | 2020-01-01 |
TWI697771B TWI697771B (en) | 2020-07-01 |
Family
ID=64827269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107121363A TWI697771B (en) | 2018-06-21 | 2018-06-21 | Data correcting system and method and data correcting device thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109150404B (en) |
TW (1) | TWI697771B (en) |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0326366D0 (en) * | 2003-11-12 | 2003-12-17 | Koninkl Philips Electronics Nv | Communication method,system and device |
AR051245A1 (en) * | 2004-11-24 | 2006-12-27 | Qualcomm Inc | SYSTEMS AND METHODS TO IMPLEMENT THE CHECKING OF CYCLING REDUNDANCE |
JP4513725B2 (en) * | 2005-11-09 | 2010-07-28 | ソニー株式会社 | Packet transmission apparatus, communication system, and program |
CN101602370A (en) * | 2009-04-27 | 2009-12-16 | 上海大陆信息服务有限公司 | Failure data acquisition and automatic error correction method for fast railway train |
DE202009016164U1 (en) * | 2009-11-26 | 2010-03-04 | Carlo Gavazzi Services Ag | Control device for photovoltaic modules |
CN102104463B (en) * | 2009-12-22 | 2013-08-07 | 中兴通讯股份有限公司 | Data message request retransmission method and device |
US20120263252A1 (en) * | 2011-04-12 | 2012-10-18 | Texas Instruments Incorporated | Systems and Methods of Power Line Transmission of Solar Panel Data |
FR3003417B1 (en) * | 2013-03-15 | 2015-04-17 | Mersen France Sb Sas | SYSTEM AND METHOD FOR LOW-RATE CARRIER CURRENT COMMUNICATION |
CN103763067B (en) * | 2014-01-28 | 2017-11-10 | 天地融科技股份有限公司 | A kind of communication data packet error checking and correction method and apparatus |
BR112017014096A2 (en) * | 2014-12-31 | 2018-03-06 | Qualcomm Incorporated | systems and methods for retrieving information from redundancy version packages |
CN106126367B (en) * | 2016-06-28 | 2019-09-20 | 湖北锐世数字医学影像科技有限公司 | A kind of self checking method and system of file |
-
2018
- 2018-06-21 TW TW107121363A patent/TWI697771B/en active
- 2018-09-05 CN CN201811034538.9A patent/CN109150404B/en active Active
Also Published As
Publication number | Publication date |
---|---|
TWI697771B (en) | 2020-07-01 |
CN109150404A (en) | 2019-01-04 |
CN109150404B (en) | 2021-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7845016B2 (en) | Methods and apparatus for verifying modules from approved vendors | |
EP2952062B1 (en) | Requesting information from lighting devices | |
CN104021054A (en) | Server fault visual detecting and processing method and system and programmable chip | |
CN105450472A (en) | Method and device for automatically acquiring states of physical components of servers | |
US11615217B2 (en) | Configuration update method for LED display screen, receiver card, LED display module, and LED display screen | |
CN104951421A (en) | Automatic numbering and type recognition method and device for serial bus communication devices | |
CN117693097B (en) | Dimming control system and method suitable for high-power light source | |
US20200099575A1 (en) | Device and method for failover | |
WO2014169869A1 (en) | Alarm processing method and alarm system | |
TWI697771B (en) | Data correcting system and method and data correcting device thereof | |
CN107765117B (en) | A kind of test device and method of optical module self-healing | |
WO2020010906A1 (en) | Method and device for operating system (os) batch installation, and network device | |
CN106936510B (en) | Method for adjusting optical power, network equipment and network management equipment | |
US9692635B2 (en) | Identifying port misconnections on a network device | |
CN103840879B (en) | A kind of optical fiber office is to recognition methods, device and system | |
CN108449426A (en) | A kind of internet of things net controller and data center's communication means and system | |
CN108828469B (en) | Street lamp fault diagnosis circuit and diagnosis method thereof | |
CN106937466A (en) | A kind of SCM Based street lamp fault detection, intelligent alarm control module | |
CN111931012A (en) | Data model self-adaption method and device based on fault management subsystem | |
KR20120071928A (en) | Apparatus and method for lighting control | |
CN110601914B (en) | Method and system for monitoring survival state of server | |
CN111901952B (en) | Combination lamps and lanterns based on DMX agreement | |
KR101459573B1 (en) | Luminaire with Data Transmission Packet | |
US6768276B2 (en) | Set-up device for on-line photo-electric localization | |
CN111082999A (en) | Self-induction self-rescue PDU (Power distribution Unit) of network equipment and self-induction self-rescue method thereof |