TW201345200A - Device and method for transmitting and receiving data - Google Patents
Device and method for transmitting and receiving data Download PDFInfo
- Publication number
- TW201345200A TW201345200A TW101114188A TW101114188A TW201345200A TW 201345200 A TW201345200 A TW 201345200A TW 101114188 A TW101114188 A TW 101114188A TW 101114188 A TW101114188 A TW 101114188A TW 201345200 A TW201345200 A TW 201345200A
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- clock
- period
- packet
- tail
- Prior art date
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Communication Control (AREA)
Abstract
Description
本發明係指一種用於傳送及接收資料之裝置和方法,尤指一種同時用於傳送及接收包含時脈資料與傳輸資料之裝置和方法。The present invention relates to an apparatus and method for transmitting and receiving data, and more particularly to an apparatus and method for simultaneously transmitting and receiving data including and transmitting data.
一般來說,傳送端(Transmitter,TX)與接收端(Receiver,RX)在傳輸資料時,除了需要有傳送/接收資料的機制之外,也需要有傳送/接收時脈(Clock)資訊的機制。在高速介面傳輸資料時,為了要提高訊號傳輸品質、降低電磁干擾(Electromagnetic interference,EMI)、提供除錯機制(Error correction)以及節省時脈電路,一般會利用將欲傳輸的資料及時脈加以編碼(encoding)來滿足以上需求。Generally speaking, when transmitting data (Transmitter, TX) and receiving end (Receiver, RX), in addition to the mechanism for transmitting/receiving data, a mechanism for transmitting/receiving clock information is required. . When transmitting data in the high-speed interface, in order to improve signal transmission quality, reduce electromagnetic interference (EMI), provide error correction (Error Correction), and save clock circuits, the data to be transmitted is generally encoded in time and time. (encoding) to meet the above requirements.
另外,為了重建時脈訊號,習知的時脈嵌入式介面通常會於欲傳輸的資料或指令中,加入恢復時脈訊號所需的時脈訊息,俾使操作系統的時脈訊號能供其正常運作,然而,透過上述操作方式將會限制傳輸過程中的資料傳輸效率。因此,提供一種更有效率之時脈訊息的設計或編碼方式,用以提高傳輸效率,同時提高產品的應用範圍,已成為本領域之重要課題。In addition, in order to reconstruct the clock signal, the conventional clock embedded interface usually adds the clock information needed to recover the clock signal to the data or instruction to be transmitted, so that the clock signal of the operating system can be provided for the clock signal. Normal operation, however, the above operation mode will limit the data transmission efficiency during transmission. Therefore, it is an important subject in the field to provide a more efficient design or coding method of clock information to improve transmission efficiency and improve the application range of the product.
因此,本發明之主要目的即在於提供一種同時包含時脈資料與封包資料之用於傳送及接收資料之裝置和方法。Accordingly, it is a primary object of the present invention to provide an apparatus and method for transmitting and receiving data that includes both clock data and packet data.
本發明揭露一種資料傳送裝置,包含有一資料分割單元,用來接收一原始傳輸資料,並將該原始傳輸資料分割成複數個分割資料;一資料產生單元,用來根據該複數個分割資料與複數個時脈資料,產生複數個封包資料,其中,每一時脈資料為一多位元資料;以及一資料輸出單元,用來輸出該複數個封包資料至一資料接收裝置;其中,每一封包資料包含有一分割資料與一時脈資料,該每一封包資料對應於一封包資料期間,該分割資料對應於該封包資料期間之一分割資料期間及該時脈資料對應於該封包資料期間之一時脈期間。The invention discloses a data transmission device, comprising a data dividing unit, configured to receive an original transmission data, and divide the original transmission data into a plurality of divided data; a data generating unit, configured to use the plurality of divided data and the plural a plurality of packet data, wherein each clock data is a multi-bit data; and a data output unit for outputting the plurality of packet data to a data receiving device; wherein each packet data The method includes a segment data and a clock data, wherein each packet data corresponds to a packet data period, and the segment data corresponds to one of the segment data periods during the packet data period and the clock data corresponds to one of the clock periods of the packet data period .
本發明揭露另一種資料傳送方法,包含有接收一原始傳輸資料,並將該原始傳輸資料分割成複數個分割資料;根據該複數個分割資料與複數個時脈資料,產生複數個封包資料,其中,每一時脈資料為一多位元資料;以及輸出該複數個封包資料至一資料接收裝置;其中,每一封包資料包含有一分割資料與一時脈資料,該每一封包資料對應於一封包資料期間,該分割資料對應於該封包資料期間之一分割資料期間及該時脈資料對應於該封包資料期間之一時脈期間。The present invention discloses another data transmission method, including receiving an original transmission data, and dividing the original transmission data into a plurality of divided data; generating a plurality of packet data according to the plurality of divided data and the plurality of clock data, wherein Each clock data is a multi-bit data; and outputting the plurality of packet data to a data receiving device; wherein each packet data includes a segment data and a clock data, wherein each packet data corresponds to a packet data During the period, the segmentation data corresponds to one of the segmentation data periods during the packet data period and the clock data corresponds to one of the clock periods of the packet data period.
本發明揭露另一種資料接收裝置,包含有一資料接收單元,用來接收來自於一資料傳送裝置之複數個封包資料;一資料擷取單元,用來根據每一封包資料中之一時脈訊號,擷取出一分割資料,其中,每一時脈資料為一多位元資料;以及一資料重組單元,用來將該資料擷取單元所擷取到之該分割資料重組成一原始傳輸資料。Another data receiving device includes a data receiving unit for receiving a plurality of packet data from a data transmitting device, and a data capturing unit for using a clock signal in each of the packet data. And taking out a segmented data, wherein each clock data is a multi-bit data; and a data recombining unit is configured to reconstitute the segment data collected by the data capturing unit into an original transmission data.
本發明揭露另一種資料接收方法,包含有接收來自於一資料傳送裝置之複數個封包資料;根據每一封包資料中之一時脈訊號,擷取出一分割資料,其中,每一時脈資料為一多位元資料;以及將該資料擷取單元所擷取到之該分割資料重組成一原始傳輸資料封包資料。The present invention discloses another method for receiving data, comprising receiving a plurality of packet data from a data transmission device; and extracting a segmentation data according to one of the clock signals in each packet data, wherein each clock data is more than one The bit data; and the segmentation data retrieved by the data extraction unit is reconstituted into an original transmission data packet data.
在本實施例中,建立一資料傳輸系統1包含一資料傳輸裝置10以及一資料接收裝置12,如第1圖所示。資料傳輸裝置10包含有一資料分割單元100、一資料產生單元102以及一資料輸出單元104。資料接收裝置12包含有一資料接收單元120、一資料擷取單元122以及一資料重組單元124。另外,資料傳輸裝置10以及資料接收裝置12之間,係根據一有線或無線方式的傳輸來建立兩者間的資料傳輸機制。In the present embodiment, a data transmission system 1 is constructed to include a data transmission device 10 and a data receiving device 12, as shown in FIG. The data transmission device 10 includes a data dividing unit 100, a data generating unit 102, and a data output unit 104. The data receiving device 12 includes a data receiving unit 120, a data capturing unit 122, and a data recombining unit 124. In addition, between the data transmission device 10 and the data receiving device 12, a data transmission mechanism between the two is established according to a wired or wireless transmission.
詳細來說,資料傳輸裝置10係透過資料分割單元100接收一原始傳輸資料Data_ori,較佳地,原始傳輸資料Data_ori包含有原始資料及/或原始傳輸指令,但不以此為限。資料分割單元100再根據預設好的傳輸協定(或根據不同需求,俾使使用者能適應性地調整該傳輸協定),將原始傳輸資料Data_ori分割成複數個分割資料Data_raw,以傳輸至資料產生單元102。至於資料產生單元102亦同時接收時脈資料CI(或是自行產生複數個時脈資料)以及複數個分割資料Data_raw,並將每一分割資料Data_raw與每一時脈資料CI組合形成一封包資料PA,進而產生複數個封包資料PA並提供至資料輸出單元104。資料輸出單元104根據前述有線或無線方式的傳輸將所有封包資料PA依序傳輸至資料接收裝置12的資料接收單元120。當然,資料接收單元120亦遵守有線或無線方式的傳輸,用以接收封包資料PA並將所接收的封包資料PA傳輸至資料擷取單元122。資料擷取單元122更包含一判斷單元(圖中未示),用來判斷對應於資料產生單元102的時脈資料CI是否被正確接收及其傳輸格式是否滿足一預設格式。資料擷取單元122進一步根據每一封包資料PA的時脈資料CI,擷取出相對應的分割資料Data_raw。最後,資料重組單元124可預設一查找表(圖中未示),用來將所擷取出的分割資料Data_raw重組為原始傳輸資料Data_ori,以完成資料傳輸裝置10與資料接收裝置12之間的資料傳輸。In detail, the data transmission device 10 receives an original transmission data Data_ori through the data dividing unit 100. Preferably, the original transmission data Data_ori includes the original data and/or the original transmission instruction, but is not limited thereto. The data splitting unit 100 further divides the original transmission data Data_ori into a plurality of divided data Data_raw according to a preset transmission protocol (or enables the user to adaptively adjust the transmission protocol according to different requirements) for transmission to the data generation. Unit 102. The data generating unit 102 also receives the clock data CI (or generates a plurality of clock data by itself) and a plurality of divided data Data_raw, and combines each divided data Data_raw with each clock data CI to form a package data PA. Further, a plurality of packet data PA are generated and supplied to the data output unit 104. The data output unit 104 sequentially transmits all the packet data PA to the material receiving unit 120 of the data receiving device 12 in accordance with the aforementioned wired or wireless transmission. Of course, the data receiving unit 120 also complies with the transmission in the wired or wireless manner, and receives the packet data PA and transmits the received packet data PA to the data capturing unit 122. The data capturing unit 122 further includes a determining unit (not shown) for determining whether the clock data CI corresponding to the data generating unit 102 is correctly received and whether the transmission format satisfies a preset format. The data extraction unit 122 further extracts the corresponding segmentation data Data_raw according to the clock data CI of each package data PA. Finally, the data reorganization unit 124 may preset a lookup table (not shown) for reorganizing the extracted segment data Data_raw into the original transmission data Data_ori to complete the data transmission device 10 and the data receiving device 12. Data transmission.
請參考第2圖,第2圖為本發明實施例一封包資料PA之示意圖。詳細來說,封包資料PA滿足資料傳輸裝置10與資料接收裝置12之間有線或無線方式的傳輸(在此僅均以兩個封包資料PA為示範),每一封包資料PA分別包含有一時脈資料CI與一分割資料Data_raw,其中,時脈資料CI係為由複數個位元所組成的多位元資料,分割資料Data_raw則包含至少一位元長度的資料。舉例來說,如第2圖所示,M與N則分別代表時脈資料CI與分割資料Data_raw的位元數量,其中,M≧2及N≧1。進一步地,每一封包資料PA係對應於一封包資料期間,而且該封包資料期間包含有一分割資料期間與一時脈期間。分割資料Data_raw會對應於該分割資料期間,時脈資料CI會對應於該時脈期間。在此情況下,針對資料傳輸裝置10而言,每一封包資料PA將會於相對應之封包資料期間被傳送出去。也就是說,分割資料Data_raw會於相對應封包資料期間中之分割資料期間被傳送出去,同樣地,時脈資料CI會於相對應封包資料期間中之時脈期間被傳送出去。值得注意的是,在此實施例中,時脈資料CI的時脈期間係領先於分割資料Data_raw的分割資料期間。也就是說,每一封包資料PA中時脈資料CI位於分割資料Data_raw的前方。如第2圖所示,所有封包資料PA會依序串列連接,即前一封包的分割資料Data_raw串接其後一封包資料的時脈資料CI。相對地,在資料接收裝置12中,將會先收到封包資料PA的時脈資料CI,然後才收到封包資料PA的分割資料Data_raw。因此,針對每一封包資料PA,資料擷取單元122可於偵測出相對應之時脈資料CI後,再擷取出相對應之分割資料Data_raw。Please refer to FIG. 2, which is a schematic diagram of a package data PA according to an embodiment of the present invention. In detail, the packet data PA satisfies the wired or wireless transmission between the data transmission device 10 and the data receiving device 12 (here, only two packet data PAs are used as an example), and each packet data PA includes a clock. The data CI and the segmentation data Data_raw, wherein the clock data CI is a multi-bit data composed of a plurality of bits, and the segmentation data Data_raw contains at least one element length data. For example, as shown in FIG. 2, M and N respectively represent the number of bits of the clock data CI and the segmentation data Data_raw, where M≧2 and N≧1. Further, each packet data PA corresponds to a packet data period, and the packet data period includes a segment data period and a clock period. The segmentation data Data_raw corresponds to the segmentation data period, and the clock data CI corresponds to the clock period. In this case, for the data transmission device 10, each packet data PA will be transmitted during the corresponding packet data. That is to say, the split data Data_raw will be transmitted during the split data period in the corresponding packet data period. Similarly, the clock data CI will be transmitted during the clock period in the corresponding packet data period. It should be noted that in this embodiment, the clock period of the clock data CI is ahead of the divided data period of the split data Data_raw. That is to say, the clock data CI in each packet data PA is located in front of the segmentation data Data_raw. As shown in Figure 2, all the packet data PA will be connected in series, that is, the data of the previous packet Data_raw is concatenated with the clock data CI of the subsequent packet data. In contrast, in the data receiving device 12, the clock data CI of the packet data PA is received first, and then the segment data Data_raw of the packet data PA is received. Therefore, for each packet data PA, the data capturing unit 122 may extract the corresponding segment data Data_raw after detecting the corresponding clock data CI.
換個角度來看,若改變第2圖中封包資料PA的組成方式,將原本位於前方一封包資料PA的分割資料Data_raw與位於其後方一封包資料PA的時脈資料CI設定為一新的封包資料,俾使時脈資料CI的時脈期間係落後於分割資料Data_raw的分割資料期間。也就是說,針對每一封包資料PA而言,時脈資料CI位於分割資料Data_raw的後方,如此一來,在資料接收裝置12中,將會先收到封包資料PA中的分割資料Data_raw,然後才收到時脈資料CI。針對每一封包資料PA,資料擷取單元122便可於偵測出前一封包資料PA之時脈資料CI後,擷取出相對應之分割資料Data_raw。因此,本領域具通常知識者,可依據使用者的不同需求,將分割資料Data_raw與時脈資料CI相對於每一封包資料PA的前後位置作適性地調整,非用以限制本發明。From another point of view, if the composition of the packet data PA in Fig. 2 is changed, the segment data Data_raw originally located in the front packet data PA and the clock data CI of the packet data PA located at the rear side are set as a new packet data. , so that the clock period of the clock data CI is behind the segmentation data period of the segmentation data Data_raw. That is to say, for each packet data PA, the clock data CI is located behind the segmentation data Data_raw, so that in the data receiving device 12, the segmentation data Data_raw in the packet data PA will be received first, and then Only receive the clock data CI. For each packet data PA, the data capturing unit 122 can detect the corresponding segment data Data_raw after detecting the clock data CI of the previous packet data PA. Therefore, those skilled in the art can appropriately adjust the split data Data_raw and the clock data CI relative to the front and rear positions of each package data PA according to different needs of the user, and are not used to limit the present invention.
值得注意地,使用者除了可改變分割資料與時脈資料相對於每一封包資料的前後位置,亦可進一步將每一時脈資料進行切割。請參考第3圖,第3圖為本發明實施例一封包資料PA_1之示意圖。相較於第2圖中的封包資料PA,第3圖中每一封包資料PA_1包含分割資料Data_raw(N個位元)及時脈資料CI_1。不同的是,時脈資料CI_1包含一前導時脈資料CI_10(X個位元)及一尾端時脈資料CI_12(Y個位元)。另外,分割資料Data_raw亦對應分割資料期間,而前導時脈資料CI_10及尾端時脈資料CI_12則各自對應一前導時脈期間與一尾端時脈期間。前導時脈資料CI_10的前導時脈期間領先分割資料Data_raw的分割資料期間,而尾端時脈資料CI_12的尾端時脈期間落後分割資料Data_raw的分割資料期間,也就是說,前導時脈資料CI_10位於分割資料Data_raw的前方,而尾端時脈資料CI_12位於分割資料Data_raw的後方。對於資料接收裝置12而言,將依序接收到前導時脈資料CI_10、分割資料Data_raw及尾端時脈資料CI_12,讓分割資料Data_raw被前導時脈資料CI_10及尾端時脈資料CI_12前後夾住的方式來形成每一封包資料PA。如此一來,在資料接收裝置12中,資料擷取單元122便可於偵測出前一封包資料PA之尾端時脈資料CI_12以及目前的封包資料PA之前導時脈資料CI_10後,擷取出相對應之分割資料Data_raw。Notably, the user can further cut each clock data in addition to changing the position of the segmentation data and the clock data relative to each package data. Please refer to FIG. 3, which is a schematic diagram of a package data PA_1 according to an embodiment of the present invention. Compared with the packet data PA in FIG. 2, each packet data PA_1 in FIG. 3 includes a segmentation data Data_raw (N bits) and a pulse data CI_1. The difference is that the clock data CI_1 includes a leading clock data CI_10 (X bits) and a tail clock data CI_12 (Y bits). In addition, the segmentation data Data_raw also corresponds to the segmentation data period, and the preamble clock data CI_10 and the tail end clock data CI_12 respectively correspond to a preamble clock period and a tail end clock period. The leading clock of the leading clock data CI_10 leads the segmentation data period of the segmentation data Data_raw, while the tail clock segment of the tail clock data CI_12 falls behind the segmentation data period of the segmentation data Data_raw, that is, the leading clock data CI_10 Located in front of the split data Data_raw, and the trailing clock data CI_12 is located behind the split data Data_raw. For the data receiving device 12, the leading clock data CI_10, the divided data Data_raw, and the tail clock data CI_12 are sequentially received, so that the divided data Data_raw is clamped by the leading clock data CI_10 and the tail clock data CI_12. The way to form each package information PA. In this way, in the data receiving device 12, the data capturing unit 122 can detect the clock data CI_12 at the end of the previous packet data PA and the current clock data CI_10 before the current packet data PA. Corresponding split data Data_raw.
簡單來說,在本實施例中,資料傳輸系統1建立資料傳輸裝置10及資料接收裝置12之間的有線或無線方式的傳輸,將原始傳輸資料Data_ori編碼為複數個封包資料PA。每一封包資料PA包含有時脈資料CI與分割資料Data_raw。根據不同需求,使用者可彈性地將時脈資料CI置於分割資料Data_raw的前方、後方,或是同時將時脈資料CI置於分割資料Data_raw的前方及後方(即分割為前導時脈資料及尾端時脈資料),皆為本發明之範疇。較佳地,針對每一位於分割資料Data_raw前方的時脈資料CI來說,其除了用來作為重建資料接收裝置12的時脈訊號(圖中未示)之用,尚可提供使用者利用其為多位元資料的特性,進一步設計不同多位元資料的組合來提供至不同的應用中。例如用來告知資料接收裝置12的使用者,何時開始接收分割資料Data_raw,或是由資料傳輸裝置10對應傳輸一控制指令至資料接收裝置12。舉例來說,將多位元時脈資料CI的最後兩個位元,設定其數值為01,透過數位訊號0變成1的瞬間作為一觸發訊號(機制),用以代表資料傳輸裝置10準備開始傳送封包資料PA至資料接收裝置12,當資料接收單元120接收後,則傳輸至資料擷取單元122的判斷單元進行判斷,並於確認滿足預設格式之後,由資料重組單元124的操作來對應還原回原始傳輸資料Data_ori。針對在高速傳輸系統中,由於數位訊號的變化時間很短暫,資料接收裝置12僅有非常短暫的反應時間來判斷是否進行資料接收的動作,因此,亦可預設多位元時脈資料CI的最後三個位元為001,即讓時脈資料CI能多等待一個數位訊號的反應時間,再透過數位訊號由0變成1的觸發訊號(機制)告知資料接收裝置12來準備接收封包資料PA,避免使用者產生遺漏接收封包資料PA的可能性,進而也提高資料傳輸系統1的傳輸效率。Briefly, in the present embodiment, the data transmission system 1 establishes a wired or wireless transmission between the data transmission device 10 and the data receiving device 12, and encodes the original transmission data Data_ori into a plurality of packet data PA. Each packet data PA contains a time-lapse data CI and a segmentation data Data_raw. According to different needs, the user can flexibly place the clock data CI in front of and behind the segment data Data_raw, or simultaneously place the clock data CI in front of and behind the segment data Data_raw (ie, into the leading clock data and The tail clock data) is within the scope of the invention. Preferably, for each clock data CI located in front of the divided data Data_raw, in addition to being used as a clock signal (not shown) for reconstructing the data receiving device 12, the user can still provide the user with the clock signal (not shown). For the characteristics of multi-bit data, a combination of different multi-bit data is further designed to be provided to different applications. For example, it is used to inform the user of the data receiving device 12 when to start receiving the divided data Data_raw, or to transmit a control command to the data receiving device 12 by the data transmitting device 10. For example, the last two bits of the multi-bit clock data CI are set to a value of 01, and the moment when the digital signal 0 becomes 1 is used as a trigger signal (mechanism) to prepare for the data transmission device 10 to start. After transmitting the packet data PA to the data receiving device 12, after receiving the data receiving unit 120, the data is transmitted to the determining unit of the data capturing unit 122 for determination, and after confirming that the preset format is satisfied, the data recombining unit 124 corresponds to the operation. Restore back to the original transfer data Data_ori. In the high-speed transmission system, since the change time of the digital signal is very short, the data receiving device 12 has only a very short reaction time to determine whether to perform the data receiving operation. Therefore, the multi-bit clock data CI can also be preset. The last three bits are 001, which allows the clock data CI to wait for the response time of one digital signal, and then informs the data receiving device 12 to receive the packet data PA through the trigger signal (mechanism) that the digital signal changes from 0 to 1. The possibility of the user missing the receipt of the packet data PA is avoided, and the transmission efficiency of the data transmission system 1 is also improved.
除此之外,使用者當然能將時脈資料CI設計為其他類型的多位元資料,由資料傳輸裝置10下達控制指令至資料接收裝置12,透過以下不同實施例,可進一步來說明。請參考第4圖,第4圖為第2圖封包資料PA類型的控制指令查找表Table1之示意圖。如第4圖所示,封包資料PA的時脈資料CI包含五個位元,且在此實施例中,控制指令查找表Table1將時脈資料CI的五個位元預設好六種控制指令,依序對應為00001(提高電流20%)、00101(提高電流40%)、01001(提高電流60%)、01101(提高電流80%)、10001(提高電流100%)以及XXXXX(不動作),亦即使用者可透過改變不同時脈資料CI的位元資料,直接控制資料接收裝置12的操作電流值。另外,請在參考第5圖,第5圖為第3圖封包資料PA_1類型的控制指令查找表Table2之示意圖。如第5圖所示,封包資料PA_1的時脈資料包含前導時脈資料CI_10(1個位元)及尾端時脈資料CI_12(2個位元),且在此實施例中,控制指令查找表Table2將前導時脈資料CI_10及尾端時脈資料CI_12的三個位元預設好三種控制指令,依序對應為100(提高電流50%)、110(提高電流100%)以及0XX(不動作)。當然,如第4圖及第5圖所示的控制指令查找表Table1、Table2僅為示範性,亦可設計不同時脈資料的組合來對應傳輸不同的控制指令,非用以限制本發明之範疇。In addition, the user can of course design the clock data CI into other types of multi-bit data, and the data transmission device 10 issues a control command to the data receiving device 12, which can be further explained by the following different embodiments. Please refer to FIG. 4, and FIG. 4 is a schematic diagram of the control instruction lookup table Table1 of the PA type of the packet data in FIG. As shown in FIG. 4, the clock data CI of the packet data PA includes five bits, and in this embodiment, the control instruction lookup table Table1 presets six control commands for five bits of the clock data CI. , in order, corresponds to 00001 (increasing current 20%), 00101 (increasing current 40%), 01001 (increasing current 60%), 01101 (increasing current 80%), 10001 (increasing current 100%), and XXXXX (not operating) That is, the user can directly control the operating current value of the data receiving device 12 by changing the bit data of the different clock data CI. In addition, please refer to FIG. 5, and FIG. 5 is a schematic diagram of the control instruction lookup table Table 2 of the packet data PA_1 of FIG. As shown in FIG. 5, the clock data of the packet data PA_1 includes the leading clock data CI_10 (1 bit) and the tail clock data CI_12 (2 bits), and in this embodiment, the control command is searched. Table 2 sets three control commands for the three bits of the leading clock data CI_10 and the tail clock data CI_12, which are sequentially corresponding to 100 (increasing current 50%), 110 (increasing current 100%), and 0XX (not action). Of course, the control command lookup tables Table1 and Table2 shown in FIG. 4 and FIG. 5 are merely exemplary, and a combination of different clock data may be designed to transmit different control commands, which is not intended to limit the scope of the present invention. .
於本實施例的有線或無線方式的傳輸中,資料傳輸裝置10所適用的一資料傳輸方法,可進一步歸納為一資料傳輸流程60,如第6圖所示。資料傳輸流程60包含以下步驟:In the wired or wireless transmission of the embodiment, a data transmission method applicable to the data transmission device 10 can be further summarized into a data transmission process 60, as shown in FIG. The data transfer process 60 includes the following steps:
步驟600:開始。Step 600: Start.
步驟602:資料分割單元100接收原始傳輸資料Data_ori,並將原始傳輸資料Data_ori分割成複數個分割資料Data_raw。Step 602: The data dividing unit 100 receives the original transmission data Data_ori, and divides the original transmission data Data_ori into a plurality of divided data Data_raw.
步驟604:資料產生單元102根據複數個分割資料Data_raw與複數個時脈資料CI,產生複數個封包資料PA。Step 604: The data generating unit 102 generates a plurality of packet data PA according to the plurality of segmentation data Data_raw and the plurality of clock data CI.
步驟606:資料輸出單元104輸出複數個封包資料PA至資料接收裝置12。Step 606: The data output unit 104 outputs a plurality of packet data PA to the data receiving device 12.
步驟608:結束。Step 608: End.
除此之外,於本實施例的有線或無線方式的傳輸中,資料接收裝置12亦適用於一資料接收方法,可進一步歸納為一資料接收流程70,如第7圖所示。資料接收流程70包含以下步驟:In addition, in the wired or wireless transmission of the embodiment, the data receiving device 12 is also applicable to a data receiving method, which can be further summarized into a data receiving process 70, as shown in FIG. The data receiving process 70 includes the following steps:
步驟700:開始。Step 700: Start.
步驟702:資料接收單元120接收來自於資料傳送裝置10之複數個封包資料PA。Step 702: The data receiving unit 120 receives a plurality of packet data PA from the data transmitting device 10.
步驟704:資料擷取單元122根據每一封包資料PA中之時脈訊號CI,擷取出分割資料Data_raw。Step 704: The data capturing unit 122 extracts the segmentation data Data_raw according to the clock signal CI in each packet data PA.
步驟706:資料重組單元124將資料擷取單元122所擷取到之分割資料Data_raw重組成原始傳輸資料Data_ori。Step 706: The data reorganization unit 124 recombines the segmentation data Data_raw captured by the data extraction unit 122 into the original transmission data Data_ori.
步驟708:結束。Step 708: End.
換句話說,根據資料傳輸流程60以及資料接收流程70,已可建立資料傳輸系統1中適用於資料傳輸裝置10及資料接收裝置12之間的有線或無線方式的傳輸。透過將時脈訊號CI放置於分割資料Data_raw的不同位置來形成傳輸用的封包資料PA,進一步完成傳輸原始傳輸資料Data_ori的目的。至於資料傳輸流程60以及資料接收流程70的細節,可參考前述實施例及第1圖到第5圖的說明,在此不贅述。In other words, according to the data transmission process 60 and the data receiving process 70, it is possible to establish a wired or wireless transmission suitable for the data transmission device 10 and the data receiving device 12 in the data transmission system 1. The packet data PA for transmission is formed by placing the clock signal CI at different positions of the divided data Data_raw, and the purpose of transmitting the original transmission data Data_ori is further completed. For details of the data transmission process 60 and the data receiving process 70, reference may be made to the foregoing embodiments and the descriptions of FIGS. 1 to 5, and details are not described herein.
綜上所述,本發明提供一種用於傳送及接收資料之裝置和方法,藉由將欲傳輸的原始傳輸資料進行分割為複數個分割資料,同時接收複數個時脈資料,並將複數個分割資料與複數個時脈資料加以編碼形成複數個封包的封包資料,用以建立一資料傳輸系統中之一資料傳輸裝置及一資料接收裝置之間的有線或無線方式的傳輸。當然,使用者亦可設計不同的時脈資料組合類型,除用以重建資料接收裝置的一時脈訊號外,亦提供資料傳輸裝置傳送一控制指令至資料接收裝置以達控制之目的,因此,透過本發明之實施例將能提高資料傳輸裝置及資料接收裝置之間的傳輸效率,同時也能提高資料傳輸系統的應用範圍。In summary, the present invention provides an apparatus and method for transmitting and receiving data, by dividing the original transmission data to be transmitted into a plurality of divided data, simultaneously receiving a plurality of clock data, and dividing the plurality of segments. The data and the plurality of clock data are encoded to form a plurality of packets of packet data for establishing a wired or wireless transmission between a data transmission device and a data receiving device in a data transmission system. Of course, the user can also design different types of clock data combinations. In addition to the one-time signal used to reconstruct the data receiving device, the data transmission device also provides a control command to the data receiving device for control purposes. The embodiments of the present invention can improve the transmission efficiency between the data transmission device and the data receiving device, and can also improve the application range of the data transmission system.
以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.
1...資料傳輸系統1. . . Data transmission system
10...資料傳輸裝置10. . . Data transmission device
100...資料分割單元100. . . Data segmentation unit
102...資料產生單元102. . . Data generation unit
104...資料輸出單元104. . . Data output unit
12...資料接收裝置12. . . Data receiving device
120...資料接收單元120. . . Data receiving unit
122...資料擷取單元122. . . Data acquisition unit
124...資料重組單元124. . . Data reorganization unit
60...資料傳輸流程60. . . Data transmission process
70...資料接收流程70. . . Data receiving process
600、602、604、606、608、700、702、704、706、708...步驟600, 602, 604, 606, 608, 700, 702, 704, 706, 708. . . step
CI、CI_1、CI_10、CI_12...時脈資料CI, CI_1, CI_10, CI_12. . . Clock data
Data_ori...原始傳輸資料Data_ori. . . Original transmission data
Data_raw...分割資料Data_raw. . . Split data
M、N、X、Y...位元數量M, N, X, Y. . . Number of bits
PA、PA_1...封包資料PA, PA_1. . . Packet information
Table1、Table2...控制指令查找表Table1, Table2. . . Control instruction lookup table
第1圖為本發明實施例一資料傳輸系統之示意圖。FIG. 1 is a schematic diagram of a data transmission system according to an embodiment of the present invention.
第2圖為本發明實施例一封包資料之示意圖。FIG. 2 is a schematic diagram of a package data according to an embodiment of the present invention.
第3圖為本發明實施例另一封包資料之示意圖。FIG. 3 is a schematic diagram of another packet data according to an embodiment of the present invention.
第4圖為第2圖封包資料類型的控制指令查找表之示意圖。Figure 4 is a schematic diagram of the control instruction lookup table of the packet data type in Fig. 2.
第5圖為第3圖封包資料類型的控制指令查找表之示意圖。Figure 5 is a schematic diagram of the control instruction lookup table of the packet data type in Fig. 3.
第6圖為本發明實施例一資料傳輸流程之示意圖。FIG. 6 is a schematic diagram of a data transmission process according to an embodiment of the present invention.
第7圖為本發明實施例一資料接收流程之示意圖。FIG. 7 is a schematic diagram of a data receiving process according to an embodiment of the present invention.
CI...時脈資料CI. . . Clock data
Data_raw...分割資料Data_raw. . . Split data
M、N...位元數量M, N. . . Number of bits
PA...封包資料PA. . . Packet information
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101114188A TW201345200A (en) | 2012-04-20 | 2012-04-20 | Device and method for transmitting and receiving data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101114188A TW201345200A (en) | 2012-04-20 | 2012-04-20 | Device and method for transmitting and receiving data |
Publications (1)
Publication Number | Publication Date |
---|---|
TW201345200A true TW201345200A (en) | 2013-11-01 |
Family
ID=49990392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW101114188A TW201345200A (en) | 2012-04-20 | 2012-04-20 | Device and method for transmitting and receiving data |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW201345200A (en) |
-
2012
- 2012-04-20 TW TW101114188A patent/TW201345200A/en unknown
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11736978B2 (en) | Method and apparatus for receiving CPRI data stream, method and apparatus for receiving ethernet frame, and system | |
JP5233165B2 (en) | Data transmission device | |
US9337960B2 (en) | Encoding and decoding methods and apparatuses of ethernet physical layer | |
US20160315788A1 (en) | Data processing method and apparatus | |
US10129371B2 (en) | Serial communication device and serial communication method | |
EP3011750B1 (en) | Transmitter, receiver, and control method thereof | |
CN105024900A (en) | Multi-machine synchronous communication system and method | |
US9432187B2 (en) | Data scrambling initialization | |
GB2520269A (en) | Ethernet link incorporating forward error correction | |
US8660125B2 (en) | Node device, integrated circuit and control method in ring transmission system | |
TWI438605B (en) | Method and device for aligning multi - channel data in transmission system | |
WO2018040824A1 (en) | Data encoding method, data decoding method, devices, and data storage medium | |
CN105704417B (en) | V-by-One picture signals are converted into the device and method of LVDS picture signals | |
TW201345200A (en) | Device and method for transmitting and receiving data | |
WO2023125332A1 (en) | Data transmission circuit and method, and chip | |
US20130016762A1 (en) | Data communication system, method of optimizing preamble length, and communication apparatus | |
US8645590B2 (en) | Application of alternate align primitives during SAS rate matching to improve continuous adaptation | |
CN108092746A (en) | A kind of serial port communication method and system | |
IL259732A (en) | Serial data multiplexing | |
US20170063521A1 (en) | Serial communication apparatus, communication system, and method for communication | |
CN104202124B (en) | A kind of erp packet communications method | |
US20150301879A1 (en) | Semiconductor device having a serial communication circuit for a host unit | |
US9258147B2 (en) | Multi-frame data processing apparatus and method using frame disassembly | |
US9661192B2 (en) | Video signal transmission apparatus | |
WO2018076682A1 (en) | Parallel interface time sequence control method and apparatus |