201010436 九、發明說明: 【發明所屬之技術領域】 本發明係關於一種資料傳輸方法及裝置、資料接收方法及裝置 及其電腦程式產品。更具體而言,本發明係關於一種以視訊串流 (video streaming )技術收送資料之資料傳輸方法及裝置、資料接 收方法及裝置及其電腦程式產品。 【先前技術】 Φ 近年來,由於網路普及,故許多軟硬體設備皆透過網路傳送資 料,使得網路中之資料傳輸量大為增加。舉例而言,為了監控工 廠各機器或/及廠房之運作狀況,可於各機器週遭或/及廠房設置感 應設備,工廠之監控中心即可自感應器收集與各機器或/及廠房相 關之資料,諸如環境溫度、環境壓力、機器轉速等等,以推測實 際情況。又如,電力公司之各分處須將當地用戶之用電情形傳回 查閱。由於工廠/電力公司具有多個分處,因此需要傳送、接收大 量之資料。上述示例之資料收集,於每一時間點可能就有數百筆、 參 甚至上萬筆資料湧入,導致頻寬之佔用量大幅上升,以及必須降 低資料之傳輸速率。 習知技術的作法為:每隔一段固定時間,將各資料來源處(例 如前述工廠所設置之感應器)所偵測到之物理量之數值直接傳送 給監控中心,並未經過特殊處理。因此,在龐大資料量湧入的情 形下,將會造成網路壅塞且/或頻寬不足之窘況發生。 除此之外,習知技術僅進行點對點之資料傳輸。以前述工廠為 例,只有監控中心能夠接收並查看資料。然而,在某些情況下, 201010436 不僅監控k需要知道實際狀況,^的其他部門也 廠房之運作情形,習知技術在這方面並無法提供解決之方法 因此,針對網路資料量 傳輸資料之機制,以減低網=之趨勢’如何設計-種能快速 域之技術者亟需解決之問題。轉及頻寬不^之問題’係為該領 【發明内容】 勺=發明之-目的在於提供—種資料傳輸方法此資料傳輪方法 二=驟1(:自複數個資料來源處分別接收-第-資料;⑼ 中該第—影像框包含複數個第_金素)\第一影像框(fr_),其 該等第-畫素其中之―;⑷自第—資料分別對應至 料;⑷利用該等第二資料形辆影處分別接收一第二資 二影像框包含複數個第二畫素,各轉框,其令該第 二畫素其_之一.以乃r彳、 ^苐一-貝料分別對應至該等第 器。 ’ Μ—視料流方式傳送該影片至-伺服 本發明之另一目的在於提供—種 置包含一資料#I @ 、’4傳輪裝置,此資料傳輸裝 貝枓收集器、—轉換器與一傳送哭 一 自複數個資料來源處分別接收—第—資料了。該貧料收集器用以 料。#•鐘M ^,及分別接收一第二資 影片之U像框及1二影像框。分別形成一 从-視訊串流方式傳送至—伺服器。 …、U將〜片 數個第-畫素,各該第一資料分別對應至影=複 〜而該第二影像框包含複數個第二查♦ η亥等弟—畫素其中之 —I,各該第二資料分別對 201010436 應至該等第二晝素其中之一。 本發明之另一目的在於提供一種電腦程式產品,此電腦程式產 品包含複數個指令。該電腦程式產品可經由電腦載入該程式並完 成上述之資料傳輸方法。 本發明之又一目的在於提供一種資料接收方法,此資料接收方 法包含以下步驟:(a)接收利用上述之資料傳輸方法所傳送之一影 片;(b)解碼該影片以得一第一影像框及一第二影像框,其中,該 Φ 第一影像框包含複數個第一晝素,該第二影像框包含複數個第二 畫素;(c)對各該第一晝素分別進行一運算以得一第一資料,俾使 各該第一資料分別對應至複數個資料來源處其中之一;以及(d)對 各該第二畫素分別進行該運算以得一第二資料,俾使各該第二資 料分別對應至該等資料來源處其中之一。 本發明之再一目的在於提供之一種資料接收裝置,此資料接收 裝置包含一接收器、一解碼器與一轉換器。該接收器係用以接收 _ 利用上述之資料傳輸裝置所傳送之一影片。該解碼器係用以解碼 該影片以得一第一影像框及一第二影像框,該第一影像框及該第 二影像框分別包含複數個第一畫素及複數個第二畫素。該轉換器 係用以對各該第一晝素分別進行運算以得一第一資料,以及對各 該第二畫素分別進行運算以得一第二資料,俾使各該第一資料分 別對應至複數個資料來源處其中之一,各該第二資料分別對應至 該等資料來源處其中之一。 本發明之再一目的在於提供之一種電腦程式產品,此電腦程式 201010436 產品包含複數個指令,該電腦程式產品可經由電腦載入該程式並 完成上述之資料接收方法。 綜上所述,本發明之傳輸端將資料來源處每一個分別對應至影像 框中之某一位置之晝素。再將不同時間點所接收之資料,分別根 據其資料來源處,填入影像框中相對應位置之畫素。之後,透過 編碼技術,可將所需傳送之資料量大為降低。當資料來源處於鄰 近時間點之資料近似時,所能降低之資料量更多。加上搭配使用 一標準之視訊串流技術傳送,可適用於既有平台,不須特別做資 料之格式轉換。除此之外,視訊串流方式亦可達到多點對多點之 資料交換架構,即用戶端可同時監控不同傳送端之資料,各傳送 端也可查看用戶端之資料。本發明之接收端則採用與傳輸端相對 應之技術,因此可於接收較少資料量之情況下,獲得所有資料來 源處所傳送之資料。 為讓本發明之上述目的、技術特徵、和優點能更明顯易懂,下 文係以較佳實施例、配合所附圖式進行詳細說明。 【實施方式】 本發明係關於一種資料傳輸方法及裝置、資料接收方法及裝置 及其電腦程式產品。以下之實施例係用以舉例說明本發明之内 容,並非用以限制本發明之範圍。須說明者,以下實施例及圖式 中,與本發明無關之元件皆已省略而未繪示。 本發明之第一實施例為一資料傳輸接收系統1,如第1A圖所 示。資料傳輸接收系統1包含一資料傳輸裝置11、一伺服器13及 資料接收裝置15a、15b、15c。 201010436 資料傳輸裝置11連接至九個資料來源處ιοί、102 ..... 109 (例 如工廠之機器、廠房或用電戶)。各資料來源處1(H、102.....109 皆可自動地偵測其週遭之環境,並將所得之第一資料121a、 122a.....129a及第二資料121b、122b.....129b (例如發電機 之轉速、室溫、用電量,或其他需要被監控之資料)傳送至資料 傳輸裝置1卜資料傳輸裝置11接收第一資料121a、122a.....129a 及第二資料121b、122b.....129b後,會再對所接收之第一資料 121a ' 122a.....129a 及第二資料 121b、122b.....129b 進行轉 ❿ 換等處理以得一影片串流檔17卜再將影片串流檔171傳送至伺服 器13。另一方面,資料接收裝置15a ' 15b ' 15c分別連接至用戶 端17a、17b、17c。資料接收裝置15a、15b、15c可自伺服器13 接收資料傳輸裝置11傳送至伺服器13之影片串流檔171,再將之 傳送至用戶端17a、17b、17c。用戶端17a、17b、17c可對影片串 流檔171中所包含之進行觀測及分析。 由上述可知,資料傳輸接收系統1主要具有二方面運作,其中, φ 第一方面運作為從資料來源處101、102 ..... 109至資料傳輸裝 置11再至伺服器13,第二方面運作則為從伺服器13至資料接收 裝置15a、15b、15c再至用戶端17a、17b、17c。此二方面運作將 於稍後分別詳述。 須強調的是,為方便理解,本實施例係以九個資料來源處101、 102 ..... 109以及三個用戶端17a、17b、17c為例,然本發明對 資料來源處及用戶端之數目並無限制。換言之,經由本實施例之 說明,該領域之技術者可輕易地實施本發明於各種不同數目之資 9 201010436 料來源處及用戶端。 首先描述資料傳輸接收系統1之第一方面運作,亦即從資料來 源處101、102.....1〇9至資料傳輸裝置11再至伺服器13之運 作。請參閱第1B圖,第一實施例之資料傳輸裝置u包含一資料 收集器111、一記憶體112、一轉換器U3、一編碼器114、一加密 器115以及一傳送器116。 請同時參閱第1A、1B圖。於一第一時間點,資料收集器m 自資料來源處1(Π、102、…、109分別接收第一資料i21a、122a、…、 129a,並儲存第一資料121a、122a、…、129a於記憶體112。於 一第二時間點’資料收集器1U自資料來源處101、102、…、109 分別接收第二資料121b、122b、“,、129b,並儲存第二資料121b、 122b.....129b於記憶體112。依此類推,資料收集器ill可再 於不同的時間點自資料來源處101、1〇2、…、1〇9分別接收其他 資料(未繪示)’並將之儲存於記憶體112,此為所屬技術領域具 有通常知識者能輕易思及,故不贅述。 須說明的是’關於此實施例之硬體設備,資料收集器111可為 一物件聯結與嵌_入之程序控制伺服器(object linking and embedding for process control server ; OPC server ),伺月艮器 13 可 包含一微控制器(micro control unit; MCU )。各該資料來源處101、 102、…、109 可為一遠程終端單元(remote terminal unit ; RTU )、 可程式邏輯控制器(programmable logic controller ; PLC )、分散式 控制系統(distributed control system ; DCS)或資料獲取與監視控 制系統(supervisory control and data acquisition ; SCADA )等能進 201010436 行環境監控及收集資料之設備。 於本實例中,資料來源處101、102 ..... 109傳送之第—資料 121a、122a、…、129a 及第二資料 121b、122b、…、129b 皆分別 為16位元。須注意者,於其他實施態樣中,第一資料121&、 122a、…、129a及第二資料121b、122b.....129b之位元數可視 資料來源處101、102 ..... 109之硬體設備而有所不同,本發明 不對資料來源處101、102 ..... 109所傳送之每一筆資料之位元201010436 IX. Description of the Invention: [Technical Field] The present invention relates to a data transmission method and apparatus, a data receiving method and apparatus, and a computer program product thereof. More specifically, the present invention relates to a data transmission method and apparatus for transmitting data by video streaming technology, a data receiving method and apparatus, and a computer program product thereof. [Prior Art] Φ In recent years, due to the popularity of the Internet, many hardware and software devices transmit data through the network, which greatly increases the amount of data transmitted in the network. For example, in order to monitor the operation status of each machine and/or plant in the plant, inductive equipment can be installed around each machine or/and the plant. The monitoring center of the factory can collect information related to each machine or/and plant from the sensor. , such as ambient temperature, ambient pressure, machine speed, etc., to speculate the actual situation. In another example, each branch of the power company must pass back the electricity usage of local users. Since the plant/power company has multiple branches, it needs to transmit and receive a large amount of data. The data collection of the above examples may have hundreds, pen, or even tens of thousands of data inflows at each point in time, resulting in a significant increase in the bandwidth usage and a reduction in the transmission rate of the data. The conventional technique is to transmit the value of the physical quantity detected by each data source (for example, the sensor set by the factory) directly to the monitoring center at a fixed time without special treatment. Therefore, in the case of huge influx of data, it will cause network congestion and/or insufficient bandwidth. In addition to this, conventional techniques only perform point-to-point data transmission. In the case of the aforementioned factory, only the monitoring center can receive and view the data. However, in some cases, 201010436 not only monitors the need to know the actual situation, but also the operation of the plant in other departments. The conventional technology does not provide a solution in this respect. Therefore, the mechanism for transmitting data for network data is In order to reduce the trend of the network = how to design - the problem that the technicians in the fast domain need to solve. The problem of the transfer and the bandwidth is not the same as the collar [invention] The spoon = invention - the purpose is to provide a kind of data transmission method. This data transmission method 2 = step 1 (: received from multiple sources) In the first-data; (9), the first-image frame contains a plurality of __ gold elements\the first image frame (fr_), wherein the first-pixels are--; (4) from the first-data corresponding to the material; (4) The second data frame is respectively received by the second data frame, and the second frame includes a plurality of second pixels, each of the frames, wherein the second pixel is one of the second pixels. One-bean material corresponds to the equalizers respectively. Μ 视 视 视 视 视 视 视 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服 伺服A transmission of crying from a number of sources of information to receive - the first - information. The lean collector is used. #•钟M ^, and receive a U picture frame and a 1 picture frame of a second video. A separate from the video stream to the server is formed. ..., U will ~ a number of first-pixels, each of the first data corresponding to the shadow = complex ~ and the second image frame contains a plurality of second check ♦ 亥 等 等 画 - - - - - - - - Each of the second materials shall be one of the second elements of 201010436. Another object of the present invention is to provide a computer program product comprising a plurality of instructions. The computer program product can load the program via a computer and complete the above data transmission method. Another object of the present invention is to provide a data receiving method, the data receiving method comprising the steps of: (a) receiving a movie transmitted by using the data transmission method described above; and (b) decoding the film to obtain a first image frame. And a second image frame, wherein the Φ first image frame includes a plurality of first pixels, the second image frame includes a plurality of second pixels; (c) performing an operation on each of the first pixels Obtaining a first data, respectively, causing each of the first data to correspond to one of a plurality of data sources; and (d) performing the operation on each of the second pixels to obtain a second data, Each of the second materials corresponds to one of the sources of the data. Still another object of the present invention is to provide a data receiving apparatus including a receiver, a decoder and a converter. The receiver is configured to receive a video transmitted by the data transmission device. The decoder is configured to decode the video to obtain a first image frame and a second image frame. The first image frame and the second image frame respectively include a plurality of first pixels and a plurality of second pixels. The converter is configured to perform operations on each of the first pixels to obtain a first data, and perform operations on each of the second pixels to obtain a second data, so that the first data respectively correspond to To one of a plurality of sources, each of which corresponds to one of the sources. Still another object of the present invention is to provide a computer program product, the computer program 201010436 product comprising a plurality of instructions, the computer program product can be loaded into the program via a computer and the above data receiving method is completed. In summary, the transmitting end of the present invention corresponds each of the data sources to a pixel at a certain position in the image frame. Then, the data received at different time points will be filled in the corresponding positions of the pixels in the image frame according to their data sources. Later, through the coding technology, the amount of data to be transmitted can be greatly reduced. When the source of the data is approximated at a near-term point in time, the amount of data that can be reduced is greater. In combination with a standard video streaming technology, it can be applied to existing platforms without special format conversion. In addition, the video streaming mode can also achieve a multi-point to multi-point data exchange architecture, that is, the user can simultaneously monitor the data of different transmitting ends, and each transmitting end can also view the data of the user end. The receiving end of the present invention adopts a technology corresponding to the transmitting end, so that the data transmitted from all data sources can be obtained while receiving a small amount of data. The above described objects, technical features, and advantages of the present invention will become more apparent from the following description. [Embodiment] The present invention relates to a data transmission method and apparatus, a data receiving method and apparatus, and a computer program product thereof. The following examples are intended to illustrate the invention and are not intended to limit the scope of the invention. It should be noted that in the following embodiments and drawings, elements that are not related to the present invention have been omitted and are not shown. The first embodiment of the present invention is a data transmission and reception system 1, as shown in Fig. 1A. The data transmission receiving system 1 includes a data transmission device 11, a server 13, and data receiving devices 15a, 15b, 15c. 201010436 The data transmission device 11 is connected to nine source sources ιοί, 102 ..... 109 (for example, the factory's machinery, plant or electricity user). Each source 1 (H, 102.....109) can automatically detect the surrounding environment, and the first data 121a, 122a.....129a and the second data 121b, 122b. ....129b (for example, the speed of the generator, room temperature, power consumption, or other data to be monitored) is transmitted to the data transmission device 1. The data transmission device 11 receives the first data 121a, 122a..... After the 129a and the second data 121b, 122b.....129b, the received first data 121a '122a.....129a and the second data 121b, 122b.....129b are transferred again. The processing is changed to obtain a video stream file 17 and the video stream file 171 is transferred to the server 13. On the other hand, the data receiving devices 15a' 15b' 15c are respectively connected to the user terminals 17a, 17b, 17c. The devices 15a, 15b, 15c can receive the video stream file 171 transmitted from the server 13 to the server 13 from the data transfer device 11 and transmit it to the client terminals 17a, 17b, 17c. The client terminals 17a, 17b, 17c can be The observation and analysis included in the video stream file 171. As can be seen from the above, the data transmission and reception system 1 mainly has two aspects of operation, The first aspect operates from the data source 101, 102 ..... 109 to the data transmission device 11 to the server 13, and the second aspect operates from the server 13 to the data receiving device 15a, 15b, 15c. And then to the user terminals 17a, 17b, 17c. The operation of these two aspects will be detailed later. It should be emphasized that, for the sake of easy understanding, the present embodiment is provided with nine sources of information 101, 102 ..... 109 And the three client terminals 17a, 17b, and 17c are taken as an example, but the present invention does not limit the number of data sources and the number of users. In other words, the present invention can easily implement the present invention by the description of the embodiment. Various types of funds 9 201010436 Source and user side. First, the first aspect of the data transmission and reception system 1 is described, that is, from the data source 101, 102.....1〇9 to the data transmission device 11 The operation of the server 13. Referring to FIG. 1B, the data transmission device u of the first embodiment includes a data collector 111, a memory 112, a converter U3, an encoder 114, an encryptor 115, and a Transmitter 116. Please also refer to Figures 1A and 1B. At a first time point, the data collector m receives the first data i21a, 122a, ..., 129a from the data source 1 (Π, 102, ..., 109, respectively, and stores the first data 121a, 122a, ..., 129a) The memory 112. The data collector 1U receives the second data 121b, 122b, ", 129b, and stores the second data 121b, 122b, respectively, from the data source 101, 102, ..., 109 at a second time point. ... 129b in memory 112. By analogy, the data collector ill can receive other data (not shown) from the data sources 101, 1〇2, ..., 1〇9 at different time points and store them in the memory 112. Those who have ordinary knowledge in the technical field can easily think about it, and therefore will not be described. It should be noted that 'with respect to the hardware device of this embodiment, the data collector 111 can be an object linking and embedding for process control server (OPC server), and the server is connected. 13 can include a micro control unit (MCU). Each of the data sources 101, 102, ..., 109 may be a remote terminal unit (RTU), a programmable logic controller (PLC), or a distributed control system (DCS). Or equipment such as the data acquisition and monitoring control system (SCADA) that can enter the environmental monitoring and collection of data in 201010436. In the present example, the first data 121a, 122a, ..., 129a and the second data 121b, 122b, ..., 129b transmitted by the data source 101, 102 ..... 109 are each 16 bits. It should be noted that in other implementations, the number of bits of the first data 121&, 122a, ..., 129a and the second data 121b, 122b.....129b can be visually sourced at the source 101, 102 .... The hardware device of 109 is different, and the present invention does not refer to the bit of each data transmitted by the source of the source 101, 102 ..... 109
數加以限制。 之後,轉換器113會將記憶體112中所儲存之第一資料121&' 122&、…、129a及第二資料121b、122b、…、129b分別形成一影 片之第一影像框及第二影像框。以下將具體詳述之。 μ參閱第1C、1D圖’其分別為第_影像框n3a及第二影像框 ⑽之示意圖。第—影像框仙及第二影像框咖皆為如之 影像框。第-影像框113a包含第_畫素lma、獅、咖、 、1136a、1137a、1138a、U3Qfl 而结纪你 ^ ,A U39a,而第二影像框113b i3kM1131b、1132b、1133b、U34b、ii35bii3 U38b、U39b。 查轉換器H3會先決定各第—資料1213、122&、.. .、與第一 畫素 ima、U32a、1133a、U34a、U35a、ima、n37a、m ⑴知間之對應關係,以及第二資料im、12沘、…、㈣與第 二畫素 ll3lb、1132b、1133b、1134b、U35b、u36b、ii37b ii38b、 1139b間之對應關係。 具體而言,轉換器113將第-資料12u、ma…、㈣分別 201010436 對應至第一晝素1131a、1132a、…、1139a其中之一。舉例而言, 轉換器113可將第一資料121a對應至第一晝素1131a、第一資料 122a對應至第一晝素1132a'…以及第一資料129a對應至第一畫 素1139a。類似地,轉換器113將第二資料121b、122b.....129b 分別對應至第二晝素1131b、1132b.....1139b其中之一。例如, 轉換器113可將第二資料121b對應至第二晝素1131b、第二資料 122b對應至第二畫素1132b、…以及第二資料129b對應至第二畫 素 1139b。 上述為較佳之對應方式,亦即,轉換器113將來自同一資料來 源之資料對應至影像框同一相對位置之晝素,例如,將資料來源 處101之第一資料121a及第二資料121b分別對應至第一影像框 113a及第二影像框113b之左上角畫素(亦即,第一畫素1131a及 第二晝素1131b)。此較佳對應方式之優點在於,同一資料來源處 於鄰近時間點之資料有其相似、相關性,將它們對應至影像框同 一相對位置之畫素,可使後續處理時,應用到資料間之相似、相 關性,以達到較佳之效果。 將第一資料121a、122a.....129a對應至第一畫素113 la、 1132a、…、1139a及將第二資料121b、122b.....129b對應至第 二畫素1131b、1132b.....1139b後,接著進一步說明轉換器113 如何具體地以第一資料121a、122a.....129a形成第一影像框 113a,以及如何具體地以第二資料121b、122b.....129b形成第 二影像框113b。第一實施例提供了以下數種具體形成第一影像框 113a及第二影像框113b之方式。 201010436 第一種形成第一影像框113a及第二影像框113b方法中,第一 晝素 1131a、1132a、..·、1139a 及第二畫素 1131b、1132b、…、1139b 的每一個皆為24位元。轉換器in將第一資料121a、122a、...、 129a、121b、122b、…、129b每一個之16位元,填入相對應之第 一畫素1131a、1132a、…、1139a之24位元中之16位元。此外, 轉換器113將第一資料121a、122a、…、129a各自之一查核相關 資料填入相對應之第一畫素1131a、U32a、 、U39a之剩餘8位 元。同樣的’轉換器113將第二資料121b、122b、…、129b每一 個之16位元’填入相對應之第二晝素i131b、U32b、…、1139b 之24位元中之16位元。此外,轉換器113亦將第二資料121b、 122b、…、129b各自之一查核相關資料填入相對應之第二畫素 1131b、1132b、...、1139b 之剩餘 8 位元。 請參閱第IE、IF圖’其係分別為此第一種形成方法之二個示 例。具體而言,第1E圖描繪第一畫素ii31a之24位元,轉換器 113將來自資料來源處101之第一資料ma填入第一畫素H3la φ 最低的位元。依此類推至其他第一資料122a、…、129a及其他 第一畫素1132a、…、1139a間之填入位元位置,以及第二資料 121b、122b、…、129b 及第二晝素 1131b、1132b、…、1139b 間 之填入位元位置。第IF圖描繪另一示例中之第一畫素! uia之24 位元,轉換器113將來自資料來源處ιοί之第一資料12la填入第 一畫素1131a中間的16位元。其他第一資料122a、 、129a及其 他第一晝素1132a、…、1139a間之填入位元位置,以及第二資料 121b、122b、…、129b 及第二晝素 i131b、U32b、 、n39b 間 13 201010436 之填入位元位置,亦依此類推。 第二種形成第一影像框113a及第二影像框113b方法中,第一 畫素 1131a、1132a、…、1139a 及第二畫素 1131b、1132b、..,、113% 的每一個皆包含一紅色子畫素R、一綠色子畫素G、及一藍色子畫 素B。每一紅色子畫素R、每一綠色子畫素G及每一藍色子畫素 皆為8位元。轉換器113將第一資料121a、122a、...、129a分別 填入相對應之相對應之第一畫素1131a、1132a、…、u39a之紅色 子畫素R、綠色子畫素Q及藍色子畫素B其中之二,例如,紅 子晝素R及綠色子畫素G。轉換器113並將第一資料121a 122a、…、129a各自之一查核相關資料填入相對應之第一畫素 1131a、1132a、…、U39a之紅色子畫素R、綠色子畫素G及藍色 子畫素B其中之另一者,例如藍色子畫素b。 同樣的,轉換器113將第二資料121b、122b、…、129b分別填 入相對應之相對應之第二畫素1131b、1132b、…、1139b之紅色子 畫素R、綠色子畫素G及藍色子畫素B其中之二,例如,紅色子 畫素R及綠色子晝素〇轉換器113並將第二資料i2lb、122b、...、 129b各自之一查核相關資料填入相對應之第二畫素丨丨3 lt>、 1132b、…、1139b之紅色子畫素R、綠色子畫素G及藍色子畫素 B其中之另一者’例如藍色子畫素B。 第1G圖為一具體示例,第ig圖描繪第一畫素1131a之紅色子 畫素R、綠色子畫素G及藍色子畫素B,轉換器113將來自資料 來源處101之第一資料丨2ia填入第一畫素1131a中之紅色子畫素 R及綠色子晝素G。假設第一資料121a之值為20000,20000之二 201010436 進位表示為0100111000100000。故將20000填入紅色子畫素R及 綠色子晝素G即為將0100111000100000的前八位元01001110(十 進位值為78)填入紅色子畫素R,以及將〇10011100010000〇的束 八位元00100000 (十進位值為32)填入綠色子畫素G。其餘依此 類推。 請再次參閱第ΙΑ、1B圖。經過轉換器113後,第一資料12la、 122a、…、129a與第二資料121b、122b、…、129b已經分別形成 φ 影片之第一影像框113a及第二影像框ii3b»接著,編碼器114將 此包含第一影像框113a與第二影像框n3b之影片編碼為具有〜 視訊位元串流格式(video bitstream)之一影片串流稽。之後,加 密器115將該影片加密,亦即對該影片串流檔加密。最後,傳送 器116以一視訊串流方式傳送該影片串流檔171(影片包含於其中) 至词服器13。須說明的是’於其他實施態樣中,資料傳輸裝置u 可不包含加密器115’而傳送器116則會傳送未加密之影片串流檔 至伺服器13。於某些實施態樣中,傳送器116可直接傳送影片串 φ 流檔至用戶端。 前面提及,同一資料來源處於相近時間點所偵測之資料值近似 (例如相近之時間點,環境溫度、壓力等幾乎是不變的),且對應 至不同影像框之同一相對位置之畫素。基於此近似關係及對應關 係,編碼器114可採用影片壓縮方式將影片壓縮為影片串流檔, 以減少貢料傳輪裝置u所需傳送之資料量。進一步言,編碼器ii4 所進行之編碼、壓縮可符合動態影像專家小組(moving picture experts group ; MPEG)之標準’且影片串流檔117符合動態影像 15 201010436 專家小組所定義之格式。 至此,資料傳輸接收系統1之第一部分運作描述完畢。接著說 明資料傳輸接收系統1之第二方面之運作,亦即從伺服器13至資 料接收裝置15a、15b、15c再至用戶端17a、17b、17c。請參閱第 1H圖,其係為資料接收裝置15a、15b、15c。資料接收裝置15a、 15b、15c各包含一接收器151、一解密器152、一解碼器153以及 一轉換器154。 首先,接收器151自伺服器13接收資料傳輸裝置11所傳送之 影片串流檔171,此影片串流檔171包含一影片(即資料傳輸端 11先前所形成之影片)。由於資料傳輸裝置11之加密器115先前 對影片加密,故資料接收裝置15a、15b、15c之解密器152會對 影片串流檔171解密。若於資料傳輸裝置11中,並無設置加密器 115,則資料接收裝置15a、15b、15c不需要設置解密器152。 解碼器153對解密後之影片_流檔171 (包含影片)解碼,以得 第1C圖之第一影像框113a及第1D圖之第二影像框113b。解碼 器153係使用與編碼器114相對應之方式進行解碼。舉例而言, 若編碼器114以符合動態影像專家小組標準之方式編碼,則解碼 器153亦使用符合動態影像專家小組標準之方式進行解碼。如前 所述,第一影像框113a包含第一畫素1131a、1132a.....1139a, 第二影像框113b包含第二畫素1131b、1132b.....1139b。 轉換器154用以對各第一畫素1131a、1132a.....1139a分別進 行一運算以分別得第一資料121a、122a.....129a,以及對各第 二晝素1131b、1132b.....1139b分別進行一運算以得分別第二 201010436 資料 121b、122b、…、129b。 轉換器154與資料傳輸裝置u之轉換器113相對應,亦設定影 像框同一相對位置之畫素所運算出之資料對應至同一資料來源 處。舉例而言,對第-影像框113a之左上角畫素(即第一晝素 1131a)運算而得之第一資料12u以及對第二影像框n3b之左上 角畫素(即第二畫素1131b)運算而得之第二資料121b,皆對應 至資料來源處ιοί。依此類推,第一資料122a及第二資料1221?對 φ應至資料來源處102,…,第一資料129a及第二資料129b對應至 資料來源處109。 接著說明轉換器154如何運算以得第一資料12ia、122a、..·、 129a及第二資料121b、122b.....129b,其方式與資料傳輸裝置 11之轉換器113之轉換方式對應。舉例而言,假設資料傳輸裝置 11之轉換器113使用第一種形成第一影像框n3a及第二影像框 113b方法,則轉換器154分別取第一畫素1131a、n32a、…、U39a 及第二畫素1131b、1132b、…、U39b之24位元中之16位元, # 以作為相對應之第一資料121a、122a.....129a及第二資料121b、 122b.....129b。轉換器並分別取畫素第一畫素u31a、 1132a、…、1139a 及第二晝素 1131b、1132b.....1139b 之剩餘 8 位元’作為相對應之第一資料12〗a、122a.....129a及第二資料 121b、122b.....129b之一查核相關資料。要強調的是,轉換器 154所取的位元位置與轉換器〗13所填入的位元位置相同。再次以 第1E圖所繪之第一畫素1131a為例,轉換器154取第一晝素113匕 之最低16位元做為第一資料i21a’且取剩餘之8位元作為其查核 17 201010436 相關資料。其餘依此類推。 假設資料傳輸裝置11之轉換器113使用第二種形成第一影像框 113a及第二影像框113b方法,則轉換器154分別取第一畫素 1131a > 1132a.....1139a 及第二晝素 113lb、1132b、…、1139b 之紅色子畫素R、綠色子畫素G及藍色子畫素B其中之二作為相 對應之第一資料121a、122a.....129a及第二資料121b、122b..... 129b。另外,轉換器154並分別取第一畫素1131a、1132a..... 1139a及第二畫素1131b、1132b.....1139b之紅色子晝素R、綠 色子晝素G及藍色子晝素B其中之另一個作為相對應之第一資料 121a、122a、…、129a及第二資料 121b、122b、…、129b 之一查 核資料。要強調的是,轉換器154與轉換器113所做之選擇須相 同。再以第1G圖所繪之第一晝素1131a為例,轉換器154取紅色 子晝素R及綠色子晝素G作為第一資料121a,且取藍色子畫素B 作為其查核相關資料。其餘依此類推。 轉換器154完成轉換後,資料接收裝置15a、15b、15c則可將 第一資料 121a、122a.....129a 及第二資料 12lb、122b.....129b 傳送至用戶端17a、17b、17c以顯示給使用者觀看。至此,資料 傳輸接收系統1之第二部分運作描述完畢。 由前述可知,資料來源處101、102 ..... 109的每一個分別對應 至影像框中之某一位置之晝素。資料傳輸裝置11將不同時間點所 接收之資料,分別根據其資料來源處,填入影像框中相對應位置 之畫素。由於每一資料來源處101、102 ..... 109之資料近似,因 此透過後續之編碼、甚至壓縮,可將資料傳輸裝置11所需傳送之 18 201010436 資料量大為降低。除此之外,透過視訊串流方式,亦可達到多點 對多點之資料交換架構,亦即用戶端可同時監控不同資料來源處 之資料。 第2圖係為根據本發明之第二實施例。第二實施例為一種資料 傳輸之方法,可用於一資料傳輸裝置,例如第一實施例中之資料 傳輸裝置11。 第二實施例所述之資料傳輸方法包含下列步驟。首先執行步驟 201,自複數個資料來源處分別接收一第一資料。接著於步驟202 中,此方法將所接收之第一資料儲存於一記憶體中。接著,於步 驟203中,此方法將這些第一資料形成一影片之第一影像框。接 著,執行步驟204,以自前述資料來源處分別接收一第二資料。再 執行步驟205以儲存這些第二資料於記憶體中。此方法接著執行 步驟206,將這些第二資料形成影片之一第二影像框。第二實施例 形成第一影像框及第二影像框之方法與第一實施例相同,故不贅 述。第二實施例可再次自前述資料來源處分別接收其他資料,將 _ 所接收的其他資料儲存,並以同樣的方法形成其他的影像框。 接著,於步驟207中,此方法將包含第一影像框及第二影像框 之影片編碼為具有一視訊位元串流格式之一影片串流檔。接著步 驟208將判斷是否需要加密。若於步驟208中決定將影片加密, 則此方法執行步驟209將影片加密,再執行步驟210以一視訊串 流方式傳送該影片(亦即加密後之影片串流檔)至一伺服器。若 步驟208之判斷結果為不需加密,則直接執行步驟210以傳送該 影片(亦即未加密之影片串流檔)。 19 201010436 除了前述之步驟,第二實施例更能執行第 運作(亦即從資料來源處101、102、...、 ]之第—方面 爯至伺菔弩w 109至資料傳輸裝置u ==二運作)之所有功能及操作,所屬技術領域具有通 常去識者了直接瞭解第二實施例如何基於上述第有通 方面運似執行轉操似魏,故不贅述。 】之第- 第二實施例所描述之資料傳輸方法亦可由一電 行’當資料傳輸裝置㈣-電腦載人該電腦程式產品並執 包含之複數個指令後,即可完成第二實施例所述之The number is limited. Then, the converter 113 stores the first data 121&'122&,..., 129a and the second data 121b, 122b, ..., 129b stored in the memory 112 into a first image frame and a second image of a movie. frame. The details will be described in detail below. μ refers to the 1C and 1D drawings, which are schematic diagrams of the first image frame n3a and the second image frame (10), respectively. The first image frame and the second image frame are the same as the image frame. The first image frame 113a includes a first pixel lma, a lion, a coffee, a 1136a, a 1137a, a 1138a, a U3Qfl, and a U 39a, and a second image frame 113b i3kM1131b, 1132b, 1133b, U34b, ii35bii3 U38b, U39b. The converter H3 will first determine the correspondence between the first data 1213, 122 &, . . . , and the first pixels ima, U32a, 1133a, U34a, U35a, ima, n37a, m (1), and the second The correspondence between the data im, 12沘, ..., (4) and the second pixels ll3lb, 1132b, 1133b, 1134b, U35b, u36b, ii37b ii38b, 1139b. Specifically, the converter 113 corresponds the first data 12u, ma..., (4) 201010436 to one of the first pixels 1131a, 1132a, ..., 1139a, respectively. For example, the converter 113 may correspond the first material 121a to the first element 1131a, the first data 122a to the first element 1132a'... and the first material 129a to the first picture 1139a. Similarly, the converter 113 maps the second data 121b, 122b.....129b to one of the second elements 1131b, 1132b.....1139b, respectively. For example, the converter 113 may correspond the second material 121b to the second pixel 1131b, the second data 122b to the second pixel 1132b, ..., and the second material 129b to the second pixel 1139b. The above is a preferred method, that is, the converter 113 corresponds the data from the same data source to the same relative position of the image frame, for example, the first data 121a and the second data 121b of the data source 101 respectively. The upper left corner pixels of the first image frame 113a and the second image frame 113b (that is, the first pixel 1131a and the second pixel 1131b). The advantage of this preferred correspondence is that the data of the same data source at the adjacent time points have similarities and correlations, and corresponding to the pixels of the same relative position of the image frame, so that the subsequent processing can be applied to the similarity between the data. Correlation, to achieve better results. Corresponding to the first pixels 121a, 122a, ..., 129a to the first pixels 113 la, 1132a, ..., 1139a and the second data 121b, 122b..... 129b to the second pixels 1131b, 1132b After ..... 1139b, it is further explained how the converter 113 specifically forms the first image frame 113a with the first data 121a, 122a.....129a, and how specifically the second data 121b, 122b.. ...129b forms a second image frame 113b. The first embodiment provides the following manners for specifically forming the first image frame 113a and the second image frame 113b. 201010436 In the first method of forming the first image frame 113a and the second image frame 113b, each of the first pixels 1131a, 1132a, .., 1139a and the second pixels 1131b, 1132b, ..., 1139b is 24 Bit. The converter in fills the 16 bits of each of the first data 121a, 122a, ..., 129a, 121b, 122b, ..., 129b into the 24 bits of the corresponding first pixels 1131a, 1132a, ..., 1139a 16 yuan in the yuan. Further, the converter 113 fills in the relevant data with one of the first data 121a, 122a, ..., 129a to fill the remaining 8 bits of the corresponding first pixels 1131a, U32a, and U39a. The same 'converter 113' fills the 16 bits of each of the second data 121b, 122b, ..., 129b into the 16 bits of the corresponding 24-bit 24-character i131b, U32b, ..., 1139b. In addition, the converter 113 also checks the relevant data of one of the second data 121b, 122b, ..., 129b into the remaining 8 bits of the corresponding second pixels 1131b, 1132b, ..., 1139b. Please refer to the IE, IF diagrams for the two examples of the first formation method. Specifically, Fig. 1E depicts the 24-bit of the first pixel ii31a, and the converter 113 fills the first data ma from the data source 101 with the lowest bit of the first pixel H3la φ. And so on to the other first data 122a, ..., 129a and other first pixels 1132a, ..., 1139a between the filling position, and the second data 121b, 122b, ..., 129b and the second element 1131b, Fill in the bit position between 1132b, ..., 1139b. The IF picture depicts the first pixel in another example! Uia's 24-bit, converter 113 fills the first data 12la from the source ιοί into the 16-bit middle of the first pixel 1131a. The filling position between the other first data 122a, 129a and the other first pixels 1132a, ..., 1139a, and the second data 121b, 122b, ..., 129b and the second pixels i131b, U32b, n39b 13 201010436 fill in the position of the bit, and so on. In the second method of forming the first image frame 113a and the second image frame 113b, each of the first pixels 1131a, 1132a, ..., 1139a and the second pixels 1131b, 1132b, .., and 113% includes one Red sub-pixel R, a green sub-pixel G, and a blue sub-pixel B. Each red sub-pixel R, each green sub-pixel G, and each blue sub-pixel are 8-bit. The converter 113 fills the first data 121a, 122a, ..., 129a with the corresponding red sub-pixels R, green sub-pixels Q and blue of the corresponding first pixels 1131a, 1132a, ..., u39a, respectively. Two of the dice pixels B, for example, red scorpion R and green sub-pixel G. The converter 113 fills in the relevant data with one of the first data 121a 122a, ..., 129a, and fills in the red sub-pixel R, the green sub-pixel G and the blue of the corresponding first pixels 1131a, 1132a, ..., U39a. The other one of the dice pixels B, such as the blue sub-pixel b. Similarly, the converter 113 fills the second data 121b, 122b, ..., 129b into the corresponding red sub-pixels R, green sub-pixels G of the corresponding second pixels 1131b, 1132b, ..., 1139b, and Two of the blue sub-pixels B, for example, the red sub-pixel R and the green sub-plasma converter 113, and the corresponding information of each of the second data i2lb, 122b, ..., 129b is filled in corresponding data. The second picture element 丨丨3 lt>, 1132b, ..., 1139b of the red sub-pixel R, the green sub-pixel G and the blue sub-picture B are the other ones such as the blue sub-pixel B. FIG. 1G is a specific example, and the ig diagram depicts the red sub-pixel R, the green sub-pixel G, and the blue sub-pixel B of the first pixel 1131a, and the converter 113 will receive the first data from the source 101.丨2ia fills in the red sub-pixel R and the green sub-alloy G in the first pixel 1131a. Assume that the value of the first data 121a is 20000, 20000 bis. The 201010436 carry is represented as 0100111000100000. Therefore, the red sub-pixel R and the green sub-alloy G are filled in with 20000, that is, the first octet 01001110 (the decimal value is 78) of 0100111000100000 is filled in the red sub-pixel R, and the bundle eight bits of the 〇10011100010000〇 Yuan00100000 (the decimal value is 32) is filled in the green sub-pixel G. The rest is analogous. Please refer to page ΙΑ, 1B again. After the converter 113, the first data 12la, 122a, ..., 129a and the second data 121b, 122b, ..., 129b have respectively formed the first image frame 113a and the second image frame ii3b of the φ movie. Next, the encoder 114 The movie including the first image frame 113a and the second image frame n3b is encoded as one of the video bitstreams. Thereafter, the encryptor 115 encrypts the movie, i.e., encrypts the video stream file. Finally, the transmitter 116 transmits the video stream file 171 (with the movie contained therein) to the word processor 13 in a video stream. It should be noted that in other embodiments, the data transfer device u may not include the encryptor 115' and the transmitter 116 may transmit the unencrypted video stream to the server 13. In some implementations, the transmitter 116 can directly stream the movie string φ to the client. As mentioned above, the data values detected by the same data source at similar time points are similar (for example, similar time points, ambient temperature, pressure, etc. are almost constant), and corresponding to the same relative position of different image frames. . Based on this approximation relationship and correspondence, the encoder 114 can compress the movie into a video stream file by using a video compression method to reduce the amount of data that the tributary transfer device u needs to transmit. Further, the encoding and compression performed by the encoder ii4 can conform to the standard of the moving picture experts group (MPEG) and the video stream file 117 conforms to the format defined by the motion picture 15 201010436 expert panel. So far, the first part of the operation of the data transmission receiving system 1 has been described. Next, the operation of the second aspect of the data transmission and reception system 1 will be explained, that is, from the server 13 to the data receiving devices 15a, 15b, 15c to the client terminals 17a, 17b, 17c. Please refer to Fig. 1H, which is a data receiving device 15a, 15b, 15c. The data receiving devices 15a, 15b, 15c each include a receiver 151, a decryptor 152, a decoder 153, and a converter 154. First, the receiver 151 receives from the server 13 the video stream file 171 transmitted by the data transmission device 11, and the video stream file 171 contains a movie (i.e., a movie previously formed by the data transmission terminal 11). Since the encryptor 115 of the data transfer device 11 previously encrypts the movie, the decryptor 152 of the data receiving device 15a, 15b, 15c decrypts the video stream file 171. If the encryptor 115 is not provided in the data transfer device 11, the data receiving devices 15a, 15b, and 15c do not need to provide the decryptor 152. The decoder 153 decodes the decrypted movie_stream file 171 (including the movie) to obtain the first picture frame 113a of the 1Cth picture and the second picture frame 113b of the 1D picture. The decoder 153 performs decoding in a manner corresponding to the encoder 114. For example, if the encoder 114 is encoded in a manner consistent with the standards of the Motion Picture Experts Group, the decoder 153 also decodes in a manner consistent with the standards of the Motion Picture Experts Group. As described above, the first image frame 113a includes first pixels 1131a, 1132a, ..., 1139a, and the second image frame 113b includes second pixels 1131b, 1132b, ..., 1139b. The converter 154 is configured to perform an operation on each of the first pixels 1131a, 1132a, ..., 1139a to obtain first data 121a, 122a, ..., 129a, respectively, and for each of the second pixels 1131b, 1132b. ..... 1139b performs an operation to obtain the second 201010436 data 121b, 122b, ..., 129b, respectively. The converter 154 corresponds to the converter 113 of the data transmission device u, and also sets the data calculated by the pixels of the same relative position of the image frame to correspond to the same data source. For example, the first data 12u obtained by computing the upper left pixel of the first image frame 113a (ie, the first pixel 1131a) and the upper left pixel of the second image frame n3b (ie, the second pixel 1131b) The second data 121b obtained by the operation corresponds to the source ιοί. By analogy, the first data 122a and the second data 1221? φ should correspond to the data source 102, ..., the first data 129a and the second data 129b correspond to the data source 109. Next, how the converter 154 calculates the first data 12ia, 122a, .., 129a and the second data 121b, 122b.....129b in a manner corresponding to the conversion mode of the converter 113 of the data transmission device 11 will be described. . For example, if the converter 113 of the data transmission device 11 uses the first method of forming the first image frame n3a and the second image frame 113b, the converter 154 takes the first pixels 1131a, n32a, ..., U39a and 16 pixels of the 24 bits of the two pixels 1131b, 1132b, ..., U39b, # as the corresponding first data 121a, 122a.....129a and the second data 121b, 122b..... 129b. The converter takes the remaining pixels of the first pixels u31a, 1132a, ..., 1139a and the second pixels 1131b, 1132b.....1139b as the corresponding first data 12〗, a, 122a .....129a and one of the second data 121b, 122b.....129b check the relevant information. It is emphasized that the bit position taken by converter 154 is the same as the bit position filled in by converter 13. Taking the first pixel 1131a depicted in FIG. 1E as an example, the converter 154 takes the lowest 16 bits of the first pixel 113匕 as the first data i21a′ and takes the remaining 8 bits as its check 17 201010436 Relevant information. The rest and so on. Assuming that the converter 113 of the data transmission device 11 uses the second method of forming the first image frame 113a and the second image frame 113b, the converter 154 takes the first pixels 1131a > 1132a.....1139a and the second, respectively. The red sub-pixel R, the green sub-pixel G, and the blue sub-pixel B of the elements 113lb, 1132b, ..., 1139b are used as the corresponding first data 121a, 122a.....129a and the second Information 121b, 122b..... 129b. In addition, the converter 154 takes the first pixel 1131a, 1132a..... 1139a and the second pixel 1131b, 1132b.....1139b, the red sub-alliner R, the green sub-alcohol G, and the blue The other one of the sub-studies B is checked as one of the corresponding first data 121a, 122a, ..., 129a and the second data 121b, 122b, ..., 129b. It is emphasized that the choices made by converter 154 and converter 113 must be the same. Taking the first element 1131a depicted in FIG. 1G as an example, the converter 154 takes the red sub-alliner R and the green sub-alloy G as the first data 121a, and takes the blue sub-pixel B as the check-related data. . The rest and so on. After the converter 154 completes the conversion, the data receiving devices 15a, 15b, 15c can transmit the first data 121a, 122a.....129a and the second data 12lb, 122b.....129b to the user terminals 17a, 17b. 17c is displayed for viewing by the user. So far, the second part of the data transmission and reception system 1 has been described. As can be seen from the foregoing, each of the data source locations 101, 102 ..... 109 corresponds to a pixel at a certain position in the image frame. The data transmission device 11 fills in the data received at different time points according to the source of the data, and fills in the pixels corresponding to the position in the image frame. Since the data of each of the data sources 101, 102 ..... 109 is approximated, the amount of data to be transmitted by the data transmission device 11 can be greatly reduced by subsequent encoding or even compression. In addition, through the video streaming method, a multi-point to multi-point data exchange architecture can also be achieved, that is, the user can simultaneously monitor data at different data sources. Figure 2 is a second embodiment in accordance with the present invention. The second embodiment is a data transmission method which can be applied to a data transmission device such as the data transmission device 11 in the first embodiment. The data transmission method described in the second embodiment includes the following steps. First, step 201 is performed to receive a first data from a plurality of data sources. Next, in step 202, the method stores the received first data in a memory. Next, in step 203, the method forms the first data frame into a first image frame of a movie. Then, step 204 is performed to receive a second data from the foregoing data sources. Step 205 is performed to store the second data in the memory. The method then proceeds to step 206 to form the second image into a second image frame of the movie. Second Embodiment The method of forming the first image frame and the second image frame is the same as that of the first embodiment, and therefore will not be described. The second embodiment can again receive other data from the aforementioned sources, store the other data received, and form other image frames in the same way. Next, in step 207, the method encodes the video including the first image frame and the second image frame into a video stream file having a video bit stream format. Subsequent step 208 will determine if encryption is required. If it is decided in step 208 to encrypt the movie, the method performs step 209 to encrypt the movie, and then performs step 210 to transmit the video (ie, the encrypted video stream file) to a server in a video streaming manner. If the result of the determination in step 208 is that no encryption is required, step 210 is directly performed to transmit the video (i.e., the unencrypted video stream file). 19 201010436 In addition to the foregoing steps, the second embodiment is more capable of performing the first operation (ie, from the first aspect of the data source 101, 102, ..., ] to the server w 109 to the data transmission device u == All functions and operations of the second operation are generally known to those skilled in the art, and it is not described in detail as to how the second embodiment is based on the above-mentioned first aspect. The data transmission method described in the second embodiment can also be completed by an electric device 'when the data transmission device (4)-computer carries the computer program product and executes the plurality of instructions, the second embodiment can be completed. Narration
=唯讀::(電腦, 疋憶體(read only memory ; ROM)、快閃記情體 碟硬碟光碟、隨身碟、磁帶、可由網路存取之資料庠, 所屬技術領域具有通常知識者所知悉之具有相同功 : 儲存媒體中。 1订其它 第3圖係為根據本發明之第三實施例。本實施例為— 收方法,可田# 接 用於一資料接收裝置,例如第一實施例中之 裝置15a、15b、15c。 貝料接收=Reading only:: (computer, read only memory; ROM), flash memory disk, hard disk, flash drive, tape, data accessible by the network, the general knowledge of the technical field It is known that it has the same work: in the storage medium. 1 other drawing is a third embodiment according to the present invention. This embodiment is a receiving method, and the field # is connected to a data receiving device, for example, the first implementation. The devices 15a, 15b, 15c in the example.
π 、…〜印用以將弟二實施例所述之資料傳輸方法戶; 片(匕3於影片串流檔中)轉換回原始之資料。首先, ^ &伺服器接收如第二實施例中所傳送之一影片 一判斷該衫片是否有加密。若該影片有加密,則執行与 將該影片解密。+萌> 步驟303所執行之解密方式與第二實施 之加密方式相對應。 - 後執仃步驟304,將解密後之影片解碼以得影片之 衫像 20 201010436 框及第一衫像框,其中,第一影像框包含複數個第—畫素,第二 影像框包含複數個第二畫素。步驟3〇4之解碼方式與第二實施: 步驟2〇7之編碼方式相對應。接*,此方法執行步驟305,對該等 第一畫素分別進行—運算,以分別得m接著,執^牛 驟3〇6’對該”二畫素分別進行—運算,以分別得—第二資料^ 須注意者’步驟305與第二實施例之步驟203相對應,而步驟3〇6 e 與步驟204相對應。若前述步驟搬判斷影片未被加密則 法直接執行步驟3〇4。 除了月J述之步驟,第三實施例更能執行第一實施例之第二 運作(亦即從伺服器至資料接收裝置15a、15b、15c再至用戶 端17a、17b、17e之運作)之所有功能及操作,所屬技術 有通常知識者可直接瞭解第三實施例如何基於上述第—實施例之 第一方面運作以執行此等操作及魏,故不贅述。 具體而5 ’第三實施例所描述之資料接收方法可由 產爾’當資料接收裝置經由一電腦載入該電腦程式產品= 灯5玄電月自程式產品所包含之複數個指令後,即可完成第三實扩 所述之貢料接收方法。前述之電腦程式產品可儲存於 Μ 記錄媒體中,例如唯讀記憶體、快閃記憶體、軟碟、硬碑:取 隨身碟、磁帶、可ά^碟、光碟、 &麟存取之㈣庫或熟胃此項技# 且八目同功能之任何其它儲存媒體中。 知 經由上迷可知’本發明所揭露之資料傳輸方法及 收方法及裝置及其電腦程式軟體,其係將複數個資料接 對應至影像框中之竿一 、针來属處分別 某位置之畫素。本發明將資料來源處於不同 21 201010436 時間點所傳送之資料,分別根據其資料來源處,填入影像框中相 對應位置之畫素。換言之,相鄰影像框之同一相對位置晝素所填 入之資料,為同一資料來源處於相鄰時間點所產生之資料。由於 同一資料來源處於相鄰時間點所產生資料之值近似,因此本發明 進一步利用編碼、壓縮之技術加以處理。比起習知技術不對資料 做任何特殊處理便加以傳輸,本發明之資料傳輸方法、裝置及資 料接收方法、裝置可減少資料量並且降低頻寬。 當資料來源處的數目增大時,更可顯示本發明之功效。舉例而 言,假設有10,000個資料來源處,各個資料來源處於每個時間點 需傳送一筆資料,則整體而言,每個時間點有10,000筆資料需要 被傳輸。本發明可將每個時間點之資料表示為100X100之影像框, 配合影像傳輸方式加以傳輸。如前所述,每個畫素為24位元(即 3個位元組),則每個時間點之資料量大小僅為30,000位元組。若 1秒鐘傳送10個影像框(1 〇 frames/sec )計算,則每秒鐘可傳輸 100,000筆資料。由此可知,本發明可順利在短時間内傳輸大量之 資料。 由於本發明使用視訊串流方式,其具有多點對多點之特性,如 同視訊會議一般,因此各該資料來源處(例如各該廠房)亦可以 看到彼此之資料。除此之外,由於視訊串流方式係為一標準模式, 與既有平台相容,不須特別將資料之格式做轉換。據此,本發明 之資料傳輸方法及裝置、資料接收方法及裝置及其電腦程式軟體 可改善習知技術之缺陷。 上述之實施例僅用來例舉本發明之實施態樣,以及闡釋本發明 201010436 之技術特徵,並非用來限制本發明之保護範疇。任何熟悉此技術 者可輕易完成之改變或均等性之安排均屬於本發明所主張之範 圍,本發明之權利保護範圍應以申請專利範圍為準。 【圖式簡單說明】 第1A圖為第一實施例之資料傳輸接收系統之示意圖; 第1B圖為第一實施例之資料傳輸裝置之示意圖; 第1C圖為第一影像框與其晝素之示意圖; φ 第1D圖為第二影像框與其畫素之示意圖; 第1E圖為第一資料與第一晝素之一對應關係示意圖; 第1F圖為第一資料與第一畫素之另一對應關係示意圖; 第1G圖為第一資料與第一畫素之再一對應關係示意圖; 第1H圖為第一實施例之資料接收裝置之示意圖; 第2圖為第二實施例之資料傳輸方法之流程圖;以及 第3圖為第三實施例之資料接收方法之流程圖。 【主要元件符號說明】 I :資料傳輸接收系統 101、102 ..... 109 :資料來源處 II :資料傳輸裝置 111 :資料收集器 112 :記憶體 113 :轉換器 113a:第一影像框 113b:第二影像框 1131a、1132a.....1139a :第一晝素 1131b ' 1132b.....1139b:第二畫素 114 :編碼器 115 :加密器 23 201010436 116 :傳送器 121a、122a、…129a :第一資料 121b ' 122b.....129b :第二資料 13 :伺服器 15a、15b、15c:資料接收裝置151:接收器 152 :解密器 153 :解碼器 154 :轉換器 17a、17b、17c :用戶端 171 :影片串流檔 R:紅色子晝素 G:綠色子畫素 B:藍色子畫素 ❹ 24π, . . . are printed to convert the data transfer method described in the second embodiment to the original data; the slice (匕3 in the video stream file) is converted back to the original data. First, the ^ & server receives a movie as transmitted in the second embodiment to determine whether the tablet is encrypted. If the movie is encrypted, execute and decrypt the movie. + Meng> The decryption method performed in step 303 corresponds to the encryption method of the second embodiment. - After performing step 304, the decrypted movie is decoded to obtain a movie shirt 20 201010436 frame and a first shirt frame, wherein the first image frame includes a plurality of first pixels, and the second image frame includes a plurality of Two pixels. The decoding method of step 3〇4 corresponds to the second implementation: the encoding mode of step 2〇7. Connected to *, the method performs step 305, respectively performing - operation on the first pixels, respectively, to obtain m, respectively, and performing the operation of the two pixels on the two pixels, respectively, to obtain - The second data ^ note that step 305 corresponds to step 203 of the second embodiment, and step 3 〇 6 e corresponds to step 204. If the foregoing step moves to determine that the movie is not encrypted, the method directly performs step 3 〇 4 The third embodiment is more capable of performing the second operation of the first embodiment (i.e., from the server to the data receiving devices 15a, 15b, 15c to the operations of the client terminals 17a, 17b, 17e), except for the steps described in the month. All of the functions and operations, those skilled in the art, can directly understand how the third embodiment operates based on the first aspect of the above-described first embodiment to perform such operations and Wei, and therefore will not be described. The data receiving method described in the example can be completed by the manufacturer's data receiving device via a computer to load the computer program product = the light 5 玄电 month self-program product contains a plurality of instructions, the third real expansion can be completed Receiving method The aforementioned computer program products can be stored in 记录 recording media, such as read-only memory, flash memory, floppy disk, hard monument: take a pen drive, a tape, a removable disk, a CD, and a amp access (4) The library or the cooked stomach of this technology and any other storage medium of the same function. Knowing that the data transmission method and receiving method and device and the computer program software disclosed in the present invention are plural The data is corresponding to the pixel in a certain position in the image frame, and the pixel is located at a certain position in the position of the needle. The data transmitted by the source at different time points of 2010 20100436 are respectively filled in the image frame according to the source of the data. The pixel corresponding to the position. In other words, the data of the same relative position of the adjacent image frames is the data generated by the same data source at the adjacent time points. The same data source is generated at the adjacent time points. The value of the data is approximated, so the present invention is further processed by the technique of encoding and compression, and is transmitted without any special processing on the data. The data transmission method, device and data receiving method and device can reduce the amount of data and reduce the bandwidth. When the number of data sources increases, the effect of the present invention can be further displayed. For example, assume that there are 10,000 data sources. Each data source needs to transmit a piece of data at each time point. In general, 10,000 pieces of data need to be transmitted at each time point. The present invention can represent the data of each time point as a 100X100 image frame, and cooperate with the image. The transmission method is transmitted. As mentioned above, each pixel is 24 bits (that is, 3 bytes), and the amount of data at each time point is only 30,000 bytes. If 10 bits are transmitted in 1 second. The image frame (1 〇frames/sec) calculates 100,000 data per second. From this, it can be seen that the present invention can smoothly transfer a large amount of data in a short time. Since the present invention uses a video streaming method, which has a multi-point-to-multipoint feature, such as a videoconferencing conference, each of the data sources (e.g., each of the factory buildings) can also see each other's data. In addition, since the video streaming mode is a standard mode, it is compatible with the existing platform, and it is not necessary to specifically convert the format of the data. Accordingly, the data transmission method and apparatus, data receiving method and apparatus, and computer program software of the present invention can improve the defects of the prior art. The embodiments described above are only intended to illustrate the embodiments of the present invention, and to explain the technical features of the present invention 201010436, and are not intended to limit the scope of protection of the present invention. Any changes or equivalents that can be easily made by those skilled in the art are within the scope of the invention. The scope of the invention should be determined by the scope of the claims. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1A is a schematic diagram of a data transmission and reception system of a first embodiment; FIG. 1B is a schematic diagram of a data transmission apparatus of the first embodiment; FIG. 1C is a schematic diagram of a first image frame and its elements φ 1D is a schematic diagram of the second image frame and its pixels; FIG. 1E is a schematic diagram of the correspondence between the first data and the first element; FIG. 1F is another correspondence between the first data and the first pixel; FIG. 1G is a schematic diagram of the correspondence between the first data and the first pixel; FIG. 1H is a schematic diagram of the data receiving device of the first embodiment; FIG. 2 is a data transmission method of the second embodiment; Flowchart; and FIG. 3 is a flow chart of the data receiving method of the third embodiment. [Description of main component symbols] I: data transmission receiving system 101, 102 ..... 109: data source II: data transmission device 111: data collector 112: memory 113: converter 113a: first image frame 113b : second picture frame 1131a, 1132a.....1139a: first element 1131b '1132b.....1139b: second picture element 114: encoder 115: encryptor 23 201010436 116: transmitters 121a, 122a , 129a: first data 121b '122b.....129b: second data 13: server 15a, 15b, 15c: data receiving device 151: receiver 152: descrambler 153: decoder 154: converter 17a , 17b, 17c: user terminal 171: video stream file R: red sub-small G: green sub-pixel B: blue sub-pixel ❹ 24