[go: up one dir, main page]

TW201436533A - System and method of transmitting data stream - Google Patents

System and method of transmitting data stream Download PDF

Info

Publication number
TW201436533A
TW201436533A TW102108218A TW102108218A TW201436533A TW 201436533 A TW201436533 A TW 201436533A TW 102108218 A TW102108218 A TW 102108218A TW 102108218 A TW102108218 A TW 102108218A TW 201436533 A TW201436533 A TW 201436533A
Authority
TW
Taiwan
Prior art keywords
data stream
serial data
compression
module
electronic device
Prior art date
Application number
TW102108218A
Other languages
Chinese (zh)
Inventor
jin-hua Xu
Original Assignee
Hon Hai Prec Ind Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Publication of TW201436533A publication Critical patent/TW201436533A/en

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The present invention provides a system and method of transmitting data stream which is applied to a first electronic device. The system includes a first processing module for converting original data stream to be serial data stream; a first determining module for determining whether the serial data stream should be compressed, and determining a compressing method when determined the serial data stream should be compressed; a compressing module for compressing the serial data stream according to the determined compressing method; and a sending module for sending the data stream to a second electronic device after making compressing mark. The present invention can be used to transmit data stream.

Description

資料流傳輸系統及方法Data stream transmission system and method

本發明涉及一種資料流傳輸系統及方法,尤其涉及一種串列資料流傳輸系統及方法。The present invention relates to a data stream transmission system and method, and more particularly to a serial data stream transmission system and method.

串口在工業上的應用一直興盛不衰,而今隨著無線傳輸的發展,串列傳輸技術的應用面在不斷擴展。然而,由於串列技術本身的限制,其傳輸能力與平行傳輸之間的差距始終存在。當前,為了縮短這一差距,最常用的方法是對資料流壓縮後傳輸。The application of serial port in the industry has been prosperous. Nowadays, with the development of wireless transmission, the application of serial transmission technology is expanding. However, due to the limitations of the serial technology itself, the gap between its transmission capability and parallel transmission is always present. Currently, in order to shorten this gap, the most common method is to compress the data stream and transmit it.

然而,在資料流壓縮過程中,同樣的壓縮演算法,針對不同資料流壓縮比率是不同的。例如,已經壓縮過的文檔再次壓縮時其壓縮空間已經很小,而普通的字元文檔卻可以以極大比例壓縮。鑒於此,在串列資料流傳輸過程中,帶壓縮功能的傳輸網路的傳輸速度是極不穩定的,一方面是由於對不同資料流做壓縮時消耗的時間不同,另一方面,某些極端情況下的資料流壓縮後的資料量反而更大,例如空白檔壓縮後反而資料量會增大,也即若對各種資料流都採用預訂的某種壓縮演算法壓縮後再傳輸,也會影響到傳輸速率。However, in the data stream compression process, the same compression algorithm has different compression ratios for different data streams. For example, a compressed document has a small compression space when compressed again, while a normal character document can be compressed at a very large scale. In view of this, in the serial data stream transmission process, the transmission speed of the transmission network with compression function is extremely unstable, on the one hand, due to the different time consumed for compressing different data streams, on the other hand, some In extreme cases, the amount of data compressed by the data stream is even larger. For example, if the blank file is compressed, the amount of data will increase, that is, if various data streams are compressed by a certain compression algorithm, then Affects the transmission rate.

鑒於以上內容,有必要提供一種資料流傳輸系統及方法,可用於串列資料流傳輸。In view of the above, it is necessary to provide a data stream transmission system and method, which can be used for serial data stream transmission.

所述資料流傳輸系統,運行於作為發送端的第一電子設備,該系統包括:第一處理模組,用於將待傳輸的原始資料流轉換為串列資料流;第一判斷模組,用於確定是否對該串列資料流進行壓縮,及確定對該串列資料流壓縮時,確定壓縮演算法;壓縮模組,用於依據確定的壓縮演算法對串列資料流進行壓縮;及發送模組,用於將串列資料流添加壓縮標識後發送給作為接收端的第二電子設備,該壓縮標識記載所述串列資料流是否經過壓縮及壓縮時所採用的壓縮演算法。The data stream transmission system is operated by the first electronic device as a transmitting end, the system includes: a first processing module, configured to convert the original data stream to be transmitted into a serial data stream; Determining whether to compress the serial data stream, and determining to compress the serial data stream, and determining a compression algorithm; the compression module is configured to compress the serial data stream according to the determined compression algorithm; and send And a module, configured to add the compressed identifier to the serial data stream, and send the compressed identifier to the second electronic device as the receiving end, where the compressed identifier records a compression algorithm used when the serial data stream is compressed and compressed.

所述資料流傳輸系統,運行於作為接收端的第二電子設備,該系統包括:接收模組,用於接收從作為發送端的第一電子設備所發送過來的串列資料流;第二判斷模組,用於根據所接收的串列資料流的壓縮標識判斷是否需進行解壓操作;解壓模組,用於根據壓縮標識所記載的壓縮演算法對所接收的串列資料流進行解壓;及第二處理模組,用於將串列資料流轉換為原始資料流。The data stream transmission system runs on a second electronic device as a receiving end, the system includes: a receiving module, configured to receive a serial data stream sent from a first electronic device as a transmitting end; and a second determining module And determining, according to the compressed identifier of the received serial data stream, whether a decompression operation is required; and decompressing the module, configured to decompress the received serial data stream according to the compression algorithm recorded by the compression identifier; and second Processing module for converting the serial data stream into the original data stream.

所述資料流傳輸方法,應用於作為發送端的第一電子設備,該方法包括:第一處理步驟,將待傳輸的原始資料流轉換為串列資料流;第一判斷步驟,確定是否對該串列資料流進行壓縮,及確定對該串列資料流壓縮時,確定壓縮演算法;壓縮步驟,依據確定的壓縮演算法對串列資料流進行壓縮;及發送步驟,將串列資料流添加壓縮標識後發送給作為接收端的第二電子設備,該壓縮標識記載所述串列資料流是否經過壓縮及壓縮時所採用的壓縮演算法。The data stream transmission method is applied to a first electronic device as a transmitting end, and the method includes: a first processing step of converting the original data stream to be transmitted into a serial data stream; and a first determining step of determining whether the string is The column data stream is compressed, and the compression algorithm is determined when the serial data stream is compressed; the compression step compresses the serial data stream according to the determined compression algorithm; and the sending step adds compression to the serial data stream The identifier is sent to the second electronic device as the receiving end, and the compressed identifier describes a compression algorithm used when the serial data stream is compressed and compressed.

所述資料流傳輸方法,應用於作為接收端的第二電子設備,該方法包括:接收步驟,接收從作為發送端的第一電子設備所發送過來的串列資料流;第二判斷步驟,根據所接收的串列資料流的壓縮標識判斷是否需進行解壓操作;解縮步驟,根據壓縮標識所記載的壓縮演算法對所接收的串列資料流進行解壓;及第二處理步驟,將串列資料流轉換為原始資料流。The data stream transmission method is applied to a second electronic device as a receiving end, the method comprising: receiving a step of receiving a serial data stream sent from a first electronic device as a transmitting end; and second determining step, according to the received The compressed identifier of the serial data stream determines whether decompression operation is required; the decompression step decompresses the received serial data stream according to the compression algorithm described in the compression identifier; and the second processing step, the serial data stream is Convert to the original stream.

相較於習知技術,所述資料流傳輸系統及方法,可用於串列資料流傳輸,並且可根據串列資料流的具體情況來決定是否對串列資料流壓縮,從而使得串列傳輸網路的傳輸速度更為穩定。Compared with the prior art, the data stream transmission system and method can be used for serial data stream transmission, and can determine whether to compress the serial data stream according to the specific situation of the serial data stream, thereby making the serial transmission network The transmission speed of the road is more stable.

1...第一電子設備1. . . First electronic device

2...第二電子設備2. . . Second electronic device

10...資料流傳輸系統10. . . Data stream transmission system

20...第一記憶體20. . . First memory

30...第一處理器30. . . First processor

40...第一通訊模組40. . . First communication module

41...第二通訊模組41. . . Second communication module

50...第二記憶體50. . . Second memory

60...第二處理器60. . . Second processor

11...第一處理模組11. . . First processing module

12...第一判斷模組12. . . First judgment module

13...壓縮模組13. . . Compression module

14...發送模組14. . . Sending module

15...接收模組15. . . Receiving module

16...第二判斷模組16. . . Second judgment module

17...解壓模組17. . . Decompression module

18...第二處理模組18. . . Second processing module

圖1是本發明資料流傳輸系統的運行環境圖。1 is a diagram showing the operating environment of the data stream transmission system of the present invention.

圖2是本發明資料流傳輸系統的功能模組圖。2 is a functional block diagram of a data stream transmission system of the present invention.

圖3是本發明資料流傳輸方法的較佳實施例的資料流發送流程圖。3 is a flow chart of data flow transmission of a preferred embodiment of the data stream transmission method of the present invention.

圖4是本發明資料流傳輸方法的較佳實施例的資料流接收流程圖。4 is a flow chart of data stream reception of a preferred embodiment of the data stream transmission method of the present invention.

如圖1所示,是本發明資料流傳輸系統的運行環境圖。本實施例中,資料流傳輸系統10運行於第一電子設備1及第二電子設備2中。所述資料流傳輸系統10用於通過第一通訊模組40和第二通訊模組41在所述第一電子設備1和第二電子設備2之間進行資料流傳輸。所述資料流包括資料、命令等。所述第一通訊模組40和第二通訊模組41可以是有線串列傳輸線纜,無線傳輸網路等。需要說明的是,所述第一電子設備1或第二電子設備2既可作為發送端也可作為接收端。As shown in FIG. 1, it is an operating environment diagram of the data stream transmission system of the present invention. In this embodiment, the data stream transmission system 10 operates in the first electronic device 1 and the second electronic device 2. The data stream transmission system 10 is configured to perform data stream transmission between the first electronic device 1 and the second electronic device 2 through the first communication module 40 and the second communication module 41. The data stream includes data, commands, and the like. The first communication module 40 and the second communication module 41 may be a wired serial transmission cable, a wireless transmission network, or the like. It should be noted that the first electronic device 1 or the second electronic device 2 can serve as both a transmitting end and a receiving end.

在本實施例中,所述第一電子設備1還包括第一記憶體20和第一處理器30,所述第二電子設備2還包括第二記憶體50和第二處理器60。需要說明的是,本實施例只是對第一電子設備1和第二電子設備2的結構進行的簡單描述,該第一電子設備1和第二電子設備2還可以包括其他元件,如電路系統、音效系統、I/O介面、電池、作業系統等。In the embodiment, the first electronic device 1 further includes a first memory 20 and a first processor 30, and the second electronic device 2 further includes a second memory 50 and a second processor 60. It should be noted that this embodiment is only a brief description of the structures of the first electronic device 1 and the second electronic device 2, and the first electronic device 1 and the second electronic device 2 may further include other components, such as a circuit system. Sound system, I/O interface, battery, operating system, etc.

所述第一記憶體20和第二記憶體50可以用於儲存所述資料流傳輸系統10的程式碼等資料。在本實施例中,所述資料流傳輸系統10可以被分割成一個或多個模組,所述一個或多個模組被儲存在所述第一記憶體20和第二記憶體50中並由一個或多個處理器(例如本實施例中的第一處理器30和第二處理器60)執行,以完成本發明。The first memory 20 and the second memory 50 can be used to store data such as code of the data stream transmission system 10. In this embodiment, the data stream transmission system 10 can be divided into one or more modules, and the one or more modules are stored in the first memory 20 and the second memory 50. Executed by one or more processors, such as first processor 30 and second processor 60 in this embodiment, to complete the present invention.

本實施例中,所述資料流傳輸系統10包括第一處理模組11、第一判斷模組12、壓縮模組13、發送模組14、接收模組15、第二判斷模組16、解壓模組17及第二處理模組18(參閱圖2所示)。In this embodiment, the data stream transmission system 10 includes a first processing module 11, a first determining module 12, a compression module 13, a transmitting module 14, a receiving module 15, a second determining module 16, and decompression. The module 17 and the second processing module 18 (see FIG. 2).

需要說明的是,當所述資料流傳輸系統10運行於發送端時,所述資料流傳輸系統10執行所述第一處理模組11、第一判斷模組12、壓縮模組13及發送模組14。當所述資料流傳輸系統10運行於接收端時,所述資料流傳輸系統10執行所述接收模組15、第二判斷模組16、解壓模組17及第二處理模組18。It should be noted that, when the data stream transmission system 10 is running on the sending end, the data stream transmission system 10 executes the first processing module 11, the first determining module 12, the compression module 13, and the sending module. Group 14. When the data stream transmission system 10 is running at the receiving end, the data stream transmission system 10 executes the receiving module 15, the second determining module 16, the decompression module 17, and the second processing module 18.

本發明所謂之模組是完成一特定功能的程式段,比程式更適合於描述軟體在第一電子設備1和第二電子設備2中的執行過程,關於各模組的功能將在如下具體描述。The module of the present invention is a program segment for performing a specific function, and is more suitable for describing the execution process of the software in the first electronic device 1 and the second electronic device 2 than the program. The functions of each module will be specifically described below. .

如圖3所示,是本發明資料流傳輸方法的較佳實施例的資料流發送流程圖。其中,圖3以第一電子設備1作為發送端進行描述,在其他實施例中,也可以第二電子設備2作為發送端。As shown in FIG. 3, it is a flow chart of data flow transmission of a preferred embodiment of the data stream transmission method of the present invention. FIG. 3 is described by using the first electronic device 1 as a transmitting end. In other embodiments, the second electronic device 2 may also be used as a transmitting end.

步驟S1,第一處理模組11將待傳輸的原始資料流轉換為串列資料流。所述原始資料流包括資料、命令等。In step S1, the first processing module 11 converts the original data stream to be transmitted into a serial data stream. The original data stream includes data, commands, and the like.

步驟S2,第一判斷模組12確定是否對該串列資料流進行壓縮,及確定對該串列資料流壓縮時,確定壓縮演算法。In step S2, the first determining module 12 determines whether to compress the serial data stream, and determines to determine the compression algorithm when compressing the serial data stream.

具體地,所述第一判斷模組12可以截取該串列資料流中的一段,利用預設的多種壓縮演算法分別對該截取的串列資料流進行壓縮,根據該截取的串列資料流在各壓縮演算法下的壓縮比率,決定是否對所述待傳輸的串列資料流進行壓縮及採用哪種壓縮演算法。Specifically, the first determining module 12 may intercept a segment of the serial data stream, and compress the intercepted serial data stream by using a plurality of preset compression algorithms, according to the intercepted serial data stream. The compression ratio under each compression algorithm determines whether to compress the serial data stream to be transmitted and which compression algorithm to use.

舉例而言,例如,預設了三種壓縮演算法,分別是A、B、C,假設所述截取的串列資料流在壓縮演算法A下的壓縮比率為40%,在壓縮演算法B下的壓縮比率為50%,在壓縮演算法C下的壓縮比率為90%,顯然在壓縮演算法C下的壓縮比率最大,那麼則確定採用壓縮演算法C,流程執行步驟S3。For example, for example, three compression algorithms are preset, which are A, B, and C respectively, and the compression ratio of the intercepted serial data stream under the compression algorithm A is 40%, under the compression algorithm B. The compression ratio is 50%, and the compression ratio under compression algorithm C is 90%. Obviously, the compression ratio under compression algorithm C is the largest, then it is determined that compression algorithm C is used, and the process proceeds to step S3.

又如,假設所述截取的串列資料流在所述預設的各壓縮演算法下,壓縮之後的資料量反而增大,那麼則確定對所述待傳輸的串列資料流不進行壓縮,流程執行步驟S4。在其他實施例中,也可以設置為當所述截取的串列資料流在各種壓縮演算法下的壓縮比率都很小,例如都小於5%時,則確定對所述待傳輸的串列資料流不進行壓縮處理。For example, if the intercepted serial data stream is increased under the preset compression algorithm, the amount of data after compression is increased, then it is determined that the serial data stream to be transmitted is not compressed. The process proceeds to step S4. In other embodiments, it may be configured that when the intercepted serial data stream has a small compression ratio under various compression algorithms, for example, less than 5%, determining the serial data to be transmitted. The stream is not compressed.

步驟S3,壓縮模組13依據確定的壓縮演算法對串列資料流進行壓縮。In step S3, the compression module 13 compresses the serial data stream according to the determined compression algorithm.

步驟S4,發送模組14將所述串列資料流添加壓縮標識後通過所述第一通訊模組40發送給作為接收端的第二電子設備2。該壓縮標識記載所述串列資料流是否經過壓縮及壓縮時所採用的壓縮演算法。In step S4, the sending module 14 adds the compressed identifier to the serial data stream and sends it to the second electronic device 2 as the receiving end through the first communication module 40. The compression flag describes a compression algorithm used when the serial data stream is compressed and compressed.

本實施例中,所述發送模組14可以在串列資料流所在資料包的包頭或包尾添加所述壓縮標識。In this embodiment, the sending module 14 may add the compressed identifier to the header or the end of the data packet where the serial data stream is located.

需要說明的是,若在步驟S2時,確定不對所述串列傳輸資料流進行壓縮,所述發送模組14對所述串列資料流添加壓縮標識,標識該串列資料流沒有經過壓縮。It should be noted that, if it is determined in step S2 that the serial transmission data stream is not compressed, the sending module 14 adds a compression identifier to the serial data stream, and identifies that the serial data stream is not compressed.

如圖4所示,是本發明資料流傳輸方法較佳實施例資料流接收過程的流程圖。其中,圖4以第一電子設備1作為接收端進行描述。如上所述,在其他實施例中,也可以將第二電子設備2作為接收端。As shown in FIG. 4, it is a flowchart of a data stream receiving process of a preferred embodiment of the data stream transmission method of the present invention. 4 is described with the first electronic device 1 as a receiving end. As described above, in other embodiments, the second electronic device 2 can also be used as the receiving end.

步驟S11,接收模組15從第二通訊模組41接收從作為發送端的第一電子設備1所發送過來的串列資料流。In step S11, the receiving module 15 receives the serial data stream sent from the first electronic device 1 as the transmitting end from the second communication module 41.

步驟S12,第二判斷模組16根據所接收的串列資料流的壓縮標識判斷是否需進行解壓操作。若壓縮標識記載該串列資料流經過壓縮,則執行步驟S13。若壓縮標識記載所接收的串列資料流沒有經過壓縮,則執行步驟S14。In step S12, the second determining module 16 determines whether a decompression operation is required according to the compressed identifier of the received serial data stream. If the compressed flag indicates that the serial data stream is compressed, step S13 is performed. If the compressed tag indicates that the received serial data stream has not been compressed, step S14 is performed.

步驟S13,解壓模組17根據壓縮標識所記載的壓縮演算法對所接收的串列資料流進行解壓。In step S13, the decompression module 17 decompresses the received serial data stream according to the compression algorithm described in the compression identifier.

步驟S14,第二處理模組18將串列資料流轉換為原始資料流。需要說明的是,在本步驟中,當所接收的所述串列資料流需進行解壓操作時,所述第二處理模組18處理的是經過解壓所得的串列資料流。In step S14, the second processing module 18 converts the serial data stream into an original data stream. It should be noted that, in this step, when the received serial data stream needs to be decompressed, the second processing module 18 processes the decompressed serial data stream.

最後應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。It should be noted that the above embodiments are only for explaining the technical solutions of the present invention and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments. Modifications or equivalents are made without departing from the spirit and scope of the invention.

10...資料流傳輸系統10. . . Data stream transmission system

11...第一處理模組11. . . First processing module

12...第一判斷模組12. . . First judgment module

13...壓縮模組13. . . Compression module

14...發送模組14. . . Sending module

15...接收模組15. . . Receiving module

16...第二判斷模組16. . . Second judgment module

17...解壓模組17. . . Decompression module

18...第二處理模組18. . . Second processing module

Claims (6)

一種資料流傳輸系統,運行於作為發送端的第一電子設備,該系統包括:
第一處理模組,用於將待傳輸的原始資料流轉換為串列資料流;
第一判斷模組,用於確定是否對該串列資料流進行壓縮,及確定對該串列資料流壓縮時,確定壓縮演算法;
壓縮模組,用於依據確定的壓縮演算法對串列資料流進行壓縮;及
發送模組,用於將串列資料流添加壓縮標識後發送給作為接收端的第二電子設備,該壓縮標識記載所述串列資料流是否經過壓縮及壓縮時所採用的壓縮演算法。
A data stream transmission system running on a first electronic device as a transmitting end, the system comprising:
a first processing module, configured to convert the original data stream to be transmitted into a serial data stream;
a first determining module, configured to determine whether to compress the serial data stream, and determine to compress the serial data stream to determine a compression algorithm;
a compression module, configured to compress the serial data stream according to the determined compression algorithm; and a sending module, configured to add the compressed identifier to the serial data stream, and send the compressed data to the second electronic device as the receiving end, where the compressed identifier is recorded The compression algorithm used when the serial data stream is compressed and compressed.
如申請專利範圍第1項所述的資料流傳輸系統,所述第一判斷模組截取所述串列資料流的一段,利用預設的多種壓縮演算法分別對該截取的串列資料流進行壓縮,根據該截取的串列資料流在各壓縮演算法下的壓縮比率,決定是否對所述待傳輸的串列資料流進行壓縮及採用哪種壓縮演算法。The data stream transmission system of claim 1, wherein the first determining module intercepts a segment of the serial data stream, and respectively performs the intercepted serial data stream by using a plurality of preset compression algorithms. Compression, according to the compression ratio of the intercepted data stream under each compression algorithm, determining whether to compress the serial data stream to be transmitted and which compression algorithm is used. 一種資料流傳輸系統,運行於作為接收端的第二電子設備,該系統包括:
接收模組,用於接收從作為發送端的第一電子設備所發送過來的串列資料流;
第二判斷模組,用於根據所接收的串列資料流的壓縮標識判斷是否需進行解壓操作;
解壓模組,用於根據壓縮標識所記載的壓縮演算法對所接收的串列資料流進行解壓;及
第二處理模組,用於將串列資料流轉換為原始資料流。
A data stream transmission system running on a second electronic device as a receiving end, the system comprising:
a receiving module, configured to receive a serial data stream sent from a first electronic device that is a transmitting end;
a second determining module, configured to determine, according to the compressed identifier of the received serial data stream, whether a decompression operation is required;
The decompression module is configured to decompress the received serial data stream according to the compression algorithm described in the compression identifier; and the second processing module is configured to convert the serial data stream into the original data stream.
一種資料流傳輸方法,應用於作為發送端的第一電子設備,該方法包括:
第一處理步驟,將待傳輸的原始資料流轉換為串列資料流;
第一判斷步驟,確定是否對該串列資料流進行壓縮,及確定對該串列資料流壓縮時,確定壓縮演算法;
壓縮步驟,依據確定的壓縮演算法對串列資料流進行壓縮;及
發送步驟,將串列資料流添加壓縮標識後發送給作為接收端的第二電子設備,該壓縮標識記載所述串列資料流是否經過壓縮及壓縮時所採用的壓縮演算法。
A data stream transmission method is applied to a first electronic device as a transmitting end, the method comprising:
a first processing step of converting the original data stream to be transmitted into a serial data stream;
a first determining step of determining whether to compress the serial data stream and determining to compress the serial data stream to determine a compression algorithm;
a compression step of compressing the serial data stream according to the determined compression algorithm; and a transmitting step of adding the compressed data identifier to the serial data stream and transmitting the data to the second electronic device as the receiving end, the compressed identifier recording the serial data stream Whether the compression algorithm used when compressing and compressing.
如申請專利範圍第4項所述的資料流傳輸方法,所述第一判斷步驟中,從所述串列資料流截取一段,利用預設的多種壓縮演算法分別對該截取的串列資料流進行壓縮,根據該截取的串列資料流在各壓縮演算法下的壓縮比率,決定是否對所述待傳輸的串列資料流進行壓縮及採用哪種壓縮演算法。The data stream transmission method according to claim 4, wherein in the first determining step, a segment is intercepted from the serial data stream, and the intercepted serial data stream is respectively separated by using a plurality of preset compression algorithms. Performing compression, according to the compression ratio of the intercepted data stream under each compression algorithm, determining whether to compress the serial data stream to be transmitted and which compression algorithm is used. 一種資料流傳輸方法,應用於作為接收端的第二電子設備,該方法包括:
接收步驟,接收從作為發送端的第一電子設備所發送過來的串列資料流;
第二判斷步驟,根據所接收的串列資料流的壓縮標識判斷是否需進行解壓操作;
解縮步驟,根據壓縮標識所記載的壓縮演算法對所接收的串列資料流進行解壓;及
第二處理步驟,將串列資料流轉換為原始資料流。
A data stream transmission method is applied to a second electronic device as a receiving end, the method comprising:
Receiving, receiving the serial data stream sent from the first electronic device as the transmitting end;
a second determining step of determining, according to the compressed identifier of the received serial data stream, whether a decompression operation is required;
The decompression step decompresses the received serial data stream according to the compression algorithm described in the compression identifier; and the second processing step converts the serial data stream into the original data stream.
TW102108218A 2013-03-05 2013-03-08 System and method of transmitting data stream TW201436533A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310069360.2A CN104038307A (en) 2013-03-05 2013-03-05 Data stream transmission system and method

Publications (1)

Publication Number Publication Date
TW201436533A true TW201436533A (en) 2014-09-16

Family

ID=51468914

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102108218A TW201436533A (en) 2013-03-05 2013-03-08 System and method of transmitting data stream

Country Status (2)

Country Link
CN (1) CN104038307A (en)
TW (1) TW201436533A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776663B (en) * 2015-11-25 2020-11-10 腾讯科技(深圳)有限公司 Audio file compression method and device
EP3419238B1 (en) 2016-03-14 2020-05-06 Huawei Technologies Co., Ltd. Method, apparatus, and system for transmitting data
CN107015817B (en) * 2017-05-25 2021-06-01 北京君泊网络科技有限责任公司 Method for upgrading equipment firmware in air
CN110430168A (en) * 2019-07-05 2019-11-08 视联动力信息技术股份有限公司 A kind of method and apparatus of data compression

Also Published As

Publication number Publication date
CN104038307A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
JP6219310B2 (en) Bidirectional tunneling via user input back channel for wireless display
US20100011012A1 (en) Selective Compression Based on Data Type and Client Capability
CN101072053B (en) Chip set and method for generating A2DP source code
CN115643310B (en) Method, device and system for compressing data
CN112350979B (en) Data transmission method and device
TW201441825A (en) System and method for USB redirection
CN106331733A (en) A method and system for real-time processing of audio and video data on a desktop cloud terminal
US9392082B2 (en) Communication interface and method for robust header compression of data flows
CN109756568A (en) File processing method, device and computer-readable storage medium
CN105207975A (en) Data transmission method and data transmission system for USB image equipment under VDI architecture
WO2015176648A1 (en) Method and device for transmitting data in intelligent terminal to television terminal
US20160063964A1 (en) Streaming video data in the graphics domain
TW201436533A (en) System and method of transmitting data stream
CN104954497B (en) Data transmission method and system in a kind of cloud storage system
US9240952B2 (en) System and method for communication between networked applications
JP5382812B2 (en) Data compression / transfer system, transmission apparatus, and data compression / transfer method used therefor
CN113704206B (en) Metadata processing method and device, electronic equipment and storage medium
CN101238457A (en) A remote protocol that supports large object communication in arbitrary formats
CN104123244A (en) USB redirection system and method
CN102999626B (en) A kind of data compression/decompression compression apparatus and method, system
US9875076B1 (en) Remoting client having GPU off-loader
CN116320039A (en) A message compression method and device, and electronic equipment
CN102546803A (en) Remote desktop communication method based on capability set
CN110704361A (en) RDMA (remote direct memory Access) data transmitting and receiving method, electronic equipment and readable storage medium
CN102279711A (en) Plug-in-based real-time data storage method and device