CN1314210C - Method and device for data transmission by dynamic adjusting compaction rate - Google Patents

Method and device for data transmission by dynamic adjusting compaction rate Download PDF

Info

Publication number
CN1314210C
CN1314210C CNB011169621A CN01116962A CN1314210C CN 1314210 C CN1314210 C CN 1314210C CN B011169621 A CNB011169621 A CN B011169621A CN 01116962 A CN01116962 A CN 01116962A CN 1314210 C CN1314210 C CN 1314210C
Authority
CN
China
Prior art keywords
compression
data
equipment
compressing
time
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB011169621A
Other languages
Chinese (zh)
Other versions
CN1385969A (en
Inventor
朱炳盈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Winbond Electronics Corp
Original Assignee
Winbond Electronics Corp
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 Winbond Electronics Corp filed Critical Winbond Electronics Corp
Priority to CNB011169621A priority Critical patent/CN1314210C/en
Publication of CN1385969A publication Critical patent/CN1385969A/en
Application granted granted Critical
Publication of CN1314210C publication Critical patent/CN1314210C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a method for data transmission by dynamic adjusting compression rate. The method is used between first equipment and second equipment. When data is transmitted to the second equipment from the first equipment, the time for transmitting a group of data to the second equipment from the first equipment is detected, and a data compression or decompression method of the first equipment and the second equipment is determined according to the corresponding time so as to transmit the data to the second equipment. The device of the present invention is composed of a control unit and a compression or decompression device. Different compression or decompression methods are set by according to corresponding time of data transmission so as to transmit the data, and thus, transmission efficiency is enhanced.

Description

Dynamically adjust the method and the device of compression ratio transmission data
The present invention relates to a kind of method and device of dynamic adjustment compression ratio transmission data, relate in particular to and be applied to method and the device that a dynamic adjustment compression ratio of sharing bus (share bus) is transmitted data.
The system of a shared bus (as Ethernet, USB, IEEE1394) in, the assigned frequency range of each equipment (device) is not can expect in advance.And in the system of a limited frequency range, lot of data (as data such as image, voice) is failed in tendency to develop, and compression earlier transfers to the other end again, and decompressing is the mode of using always again.But the mode difference of compression, required computing time (computing time) is also just different.Generally speaking, compression ratio is bigger, and required computing time is just longer.System designer wishes to try to achieve the minimum value of overall transmission time (=compression time T1+ packed data reaches other end T2+ decompression time T 3 via transmission system).But in the system of shared bus, each assigned frequency range of equipment is not certain, so T2 and on-fixed.If T1, T3 fix (the compression/de-compression mode is fixed), and can't guarantee that T1+T2+T3 is a minimum value.
See also Fig. 1.In order under limited frequency range, to transmit lot of data, end 11 is exported/gone into to the data of device A in data output, can be earlier through a compression/decompression compression apparatus 12 packed datas, by transmission/receiving system 13 data are served shared bus (share bus) 17 again, and can obtain the data that send equipment B on the shared bus to by transmitting receiving system 14 in equipment B, with data decompression, end 16 is imported/gone out to the data that are resent to equipment B through a compression/decompression compression apparatus 15.
Compression ratio can have influence on the required time of compression/de-compression (computer time).Generally speaking, compression ratio is higher, and the time of required compression/de-compression is just longer.
A common system designer can be delivered to the long-range required time and the size of data according to required time of compression/de-compression with via specific transmission line, decide a compress mode that is suitable for described system, in the hope of an optimum value, that is the minimum value of overall transmission time (data after the compression time T1+ compression are sent to long-range time T 2+ decompression time T 3 via transmission line).
But in the configuration of the system (as Universal Serial Bus, Ethernet, IEEE1394 etc.) of shared bus, the assigned frequency range of any one device (as scanner, printer, Digital camera etc.) is not certain, but according to there being what devices to go the dynamic assignment frequency range to give and a device on whole shared bus, that is data are sent to the required time of the other end via shared bus and can change with what of installing on the shared bus.
So system designer just can't determine the compression/de-compression mode of optimal compression value, also just can't expect the minimum value of overall transmission time (data after compression time+compression are delivered to long-range time+decompression time via transmission line) certainly.
The object of the present invention is to provide a kind of method of dynamic adjustment compression ratio transmission data, can make the transmission of data still have minimum overall transmission time by corresponding different transmitting bandwidth, to promote the efficiency of transmission of data; Also can make the service efficiency of shared bus reach best effect.
For achieving the above object, the method of a kind of dynamic adjustment compression ratio transmission data of the present invention, be used between one first equipment and one second equipment institute's first device data being transferred to described second equipment, be characterized in, comprising the following steps: to detect described first equipment and transmit the time of one group of data to described second equipment, is to transmit described group of data to described second equipment by described first equipment to receive the response signal that described second equipment sends back to again and finish; And the corresponding described time determines the data compression/decompression compression method of described first equipment and second equipment, comprise: the compressing/decompressing method of the compressing/decompressing method of a high compression rate and a little compressible, with the corresponding described time, the compressing/decompressing method of decision a kind of compression ratio wherein is to transmit described group of certificate to described second equipment.
Certainly, the compressing/decompressing method of described high compression rate can be Huffman (Huffman) compressing/decompressing method, and the compressing/decompressing method of described little compressible can be the PCX-RLE compressing/decompressing method.
For achieving the above object, the invention provides a kind of dynamic adjustment compression ratio apparatus for transmitting data,, be characterized in that it comprises in order to transmit one group of data: a control unit, in order to transmit the time of described group of data and described group of data of detected transmission; An and compression/decompression compression apparatus, at least comprise the compression/decompression compression apparatus of a high compression rate and the compression/decompression compression apparatus of a little compressible, be used for being decompressed when described control unit receives described group of data, and when transmitting described group of data, described control unit compressed, and the time of described group of data of respective transmissions is with described group of data of different compression ratio compression/de-compression.
The compression/decompression compression apparatus of described high compression rate is one can carry out the device of Huffman compression/de-compression, and the compressing/decompressing method of described little compressible is one can carry out the device of PCX-RLE compression/de-compression.
Adopt technique scheme of the present invention, but the time length of respective data transfer is dynamically adjusted different compressing/decompressing methods, can make the transmission of data obtain a best mode, and can reduce the service efficiency of overall transmission time and raising transmission line.The present invention can be applicable to various shared buss.
Be clearer understanding purpose of the present invention, characteristics and advantage, the present invention is described in detail below in conjunction with accompanying drawing.
Fig. 1 is existing transfer of data schematic diagram;
Fig. 2 is a transfer of data schematic diagram of the present invention;
Fig. 3 dynamically adjusts compression ratio transmitting data stream journey figure;
Fig. 4 is the schematic diagram that the present invention is applied to the embodiment of USB;
Fig. 5 is that schematic diagram is disassembled in the timesharing of Fig. 4.
Above-mentioned Huffman (Huffman) compression/de-compression, PCX-RLE compression/de-compression, control unit etc. for prior art for those skilled in the art are afamiliar with, so the present invention does not add to give unnecessary details.The present invention be will describe below in detail and the flow process of data and principle etc. transmitted.
See also Fig. 2.The present invention dynamically adjusts the compression ratio apparatus for transmitting data mainly by control unit 21 and compression/decompression compression apparatus 23 (or 22,24) form, via the cooperation of data input pin 11 (or 16) and transmission/receiving system 13 (or 14), transmit the purpose of data again to reach dynamic adjustment compression ratio.
The present invention is different from the prior art part and is that prior art there is no the mechanism of automatic adjustment compression ratio, and can reach the purpose of dynamic adjustment in the present invention by the interaction of control unit and compression/decompression compression apparatus.
In device A, data are imported/are gone out end 11 from data and deliver to control unit 21, the compression/de-compression mode that control unit decision compression/decompression compression apparatus 13 is adopted is carried out data compression, the data of device A being compressed by transmission/receiving system 13 are put on the shared bus (share bus) again, the data that transmission/receiving system 14 receiving equipment A of equipment B compressed, at the compression/decompression compression apparatus, carry out the action of data decompression in same compression/de-compression mode.Certainly, the compression/de-compression mode is determined by control unit 22.Data are distributed to required data by control unit 22 to import/go out end 16 after decompressing, with the action of the transmission of finishing data.
Certainly, the mode of compression/de-compression can be set at the beginning the time in system, also can be in system transmissions how much dynamically the adjusting of frequency range of corresponding shared bus (share bus).
At the beginning, the compression/de-compression mode of device A and equipment B can be calculated the described group of time that package is required back and forth by elder generation's one group of test packets of transmission/reception (test packet), is determined.If data transmission period is longer, represent the load of shared bus bigger, the frequency range that device A and equipment B are assigned to is less, this moment, the compression/de-compression mode of device A and equipment B should adopt compression ratio higher, compress data volume littler, put on the shared bus again, reduce overall transmission time (T1+T2+T3) on the one hand, the aspect can reduce the load of shared bus in addition.In like manner, if the data transmission period that records is shorter, the less compression/de-compression mode of then available compression ratio is transmitted.Can improve the service efficiency of shared bus like this, overall transmission time also can get a minimum value simultaneously.
In the middle of transfer of data, may have the ranks that other equipment adds or withdraw from the shared bus transmission, the control unit 21 of device A and equipment B, 22 in transmission course, oneself notes the data time back and forth constantly, and the transmission time one changes (other equipment add or withdraw from shared bus), then can adjust in good time, adopt the compressing/decompressing method of different compression ratios, to reach the purpose of dynamic adjustment.
See also Fig. 3.The method that the present invention dynamically adjusts compression ratio transmission data is to be used between device A and the equipment B, when device A transfers data to equipment B, checkout equipment A transmits the time of one group of data to equipment B, and which kind of data compression/decompression compression method the length decision device A of corresponding time and equipment B use, to transfer data to equipment B.Its detailed step is as follows:
Step 31: at the beginning of transfer of data, device A and equipment B must be preset an identical compressing/decompressing method and carry out the transmission of data.
Step 32: in the transfer of data, the control unit of device A (B), the compressing/decompressing method that decision will be used according to its frequency range that can be assigned to.
Step 33: after decision made compressing/decompressing method, the control unit of necessary announcement apparatus B (A) was in the hope of the employed compressing/decompressing method unanimity of two equipment.
Step 34: then, each uses the compressing/decompressing method compression/de-compression data of agreement two equipment, and transmits data.
On the practice, dynamic compression decompressing device 23,24 can be finished by software, also can adopt hardware mode.Certainly, with structure, dynamic compression/decompressing device should comprise the compression/decompression compression apparatus of a high compression rate and the compression/decompression compression apparatus of a little compressible at least, in other words, at least should provide the method for two kinds of compression/de-compression (as Huffman, PCX-RLE etc.), with the demand of corresponding different transmitting bandwidth.
Fig. 4 and Fig. 5 are the embodiment that the present invention is applied to USB.First equipment is scanner (scanner), and second equipment is PC (PC).In addition, for the influence of transmitting bandwidth is described, the situation that adds (or withdrawing from) shared bus with the printer (printer) of the 3rd equipment further specifies as follows:
Suppose that scanner when t1 (scanner) (A) wants to send a GDF to PC (PC) end (B), suppose that this data file has 40MByte, at this moment (t1) (C) goes up and free of data transmits on USB at printer (printer), at this moment scanner (A) is fully enjoyed whole frequency ranges of USB 12Mb/s: so scanner can be sent one group of test packets (test packet) before beginning to transmit data, and wait for PC (B) return package (return packet).Scanner receiving to by PC (B) return package the time, judge that the amount of information (traffic) on the USB is very low (because very short from being sent to the time of receiving test packets).So scanner decision use lower but compression/de-compression time of compression ratio faster the Huffman method come packed data.When having supposed (t2), these block graphics data have transmitted 20Mbyte, and at this moment printer has data to want to transmit on USB.12Mb/s frequency range on (t2) USB must be shared by printer and scanner at this moment.Because scanner whenever send one group of package to the PC end, the PC end receives that must return one group of package behind this group package tells scanner to confirm that this organizes the package received correct.After (t2), scanner can be known that package is issued to from scanner and receive that the time of confirming package is during greater than (t1-t2).So it is higher at compression ratio that scanner decision is used, but long PCX-RLE compress mode of compression/decompression time is come packed data, in the hope of preferable value, that is (data time+decompression time of packed data time+transmissions compression is minimum).Printer no longer transmits data when having supposed (t3), and scanner is enjoyed whole frequency ranges of USB again fully, and the available again Huffman compress mode of scanner transmits data.
Huffman and PCX-RLE two compressing/decompressing methods are not unique selection, and also visual demand and adopt other kind compressing/decompressing method on the market still can reach the purpose of dynamic adjustment.And two kinds of compressing/decompressing methods are an example of the present invention and oneself, and the designer also can adopt the compressing/decompressing method more than two kinds, to increase the elasticity of adjusting.
By above-mentioned diagram and explanation as can be known, the time length of respective data transfer is dynamically adjusted different compressing/decompressing methods, can make transmitting of data a best mode, reaching the minimizing overall transmission time, and increase the purpose of the service efficiency of transmission line.Secondly, the present invention can be applicable on each shared bus, has lifted one in the literary composition and has been applied to the concrete instance of USB so that it will be apparent to those skilled in that and understand the present invention.

Claims (6)

1. a method of dynamically adjusting compression ratio transmission data is used between one first equipment and one second equipment institute's first device data being transferred to described second equipment, it is characterized in that, comprises the following steps:
Detecting described first equipment and transmit one group of data to time of described second equipment, is to transmit described group of data to described second equipment by described first equipment to receive the response signal that described second equipment sends back to again and finish; And
The corresponding described time determines the data compression/decompression compression method of described first equipment and second equipment, comprise: the compressing/decompressing method of the compressing/decompressing method of a high compression rate and a little compressible, with the corresponding described time, the compressing/decompressing method of decision a kind of compression ratio wherein is to transmit described group of certificate to described second equipment.
2. the method for dynamic adjustment compression ratio transmission data as claimed in claim 1 is characterized in that the compressing/decompressing method of described high compression rate is Huffman (Huffman) compressing/decompressing method.
3. the method for dynamic adjustment compression ratio transmission data as claimed in claim 1 is characterized in that the compressing/decompressing method of described little compressible is the PCX-RLE compressing/decompressing method.
4. dynamically adjust the compression ratio apparatus for transmitting data for one kind,, it is characterized in that it comprises in order to transmit one group of data:
One control unit is in order to transmit the time of described group of data and described group of data of detected transmission; And
One compression/decompression compression apparatus, at least comprise the compression/decompression compression apparatus of a high compression rate and the compression/decompression compression apparatus of a little compressible, be used for being decompressed when described control unit receives described group of data, and when transmitting described group of data, described control unit compressed, and the time of described group of data of respective transmissions is with described group of data of different compression ratio compression/de-compression.
5. dynamic adjustment compression ratio apparatus for transmitting data as claimed in claim 4 is characterized in that, the compression/decompression compression apparatus of described high compression rate is one can carry out the device of Huffman (Huffman) compression/de-compression.
6. dynamic adjustment compression ratio apparatus for transmitting data as claimed in claim 4 is characterized in that, the compression/decompression compression apparatus of described little compressible is one can carry out the device of PCX-RLE compression/de-compression.
CNB011169621A 2001-05-10 2001-05-10 Method and device for data transmission by dynamic adjusting compaction rate Expired - Fee Related CN1314210C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB011169621A CN1314210C (en) 2001-05-10 2001-05-10 Method and device for data transmission by dynamic adjusting compaction rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB011169621A CN1314210C (en) 2001-05-10 2001-05-10 Method and device for data transmission by dynamic adjusting compaction rate

Publications (2)

Publication Number Publication Date
CN1385969A CN1385969A (en) 2002-12-18
CN1314210C true CN1314210C (en) 2007-05-02

Family

ID=4662641

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB011169621A Expired - Fee Related CN1314210C (en) 2001-05-10 2001-05-10 Method and device for data transmission by dynamic adjusting compaction rate

Country Status (1)

Country Link
CN (1) CN1314210C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301290B (en) * 2013-07-15 2018-11-09 联想(北京)有限公司 A kind of method and electronic equipment of information processing
CN105100116A (en) * 2015-08-31 2015-11-25 云南电网有限责任公司电力科学研究院 Efficient and safe power data interaction method in wireless communication mode
CN106559444A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 Data processing method and device
CN110266814B (en) * 2019-07-09 2021-08-17 联想(北京)有限公司 Transmission method and transmission device
CN110691251A (en) * 2019-10-14 2020-01-14 浙江大华技术股份有限公司 Image compression method, device, system, DSP, storage medium and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1245381A (en) * 1998-08-19 2000-02-23 惠普公司 Method and apparatus for storing uninterrupted digital video frequency flow

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1245381A (en) * 1998-08-19 2000-02-23 惠普公司 Method and apparatus for storing uninterrupted digital video frequency flow

Also Published As

Publication number Publication date
CN1385969A (en) 2002-12-18

Similar Documents

Publication Publication Date Title
EP0852445A3 (en) Method of optimizing bandwidth for transmitting compressed video data streams
EP1335561B1 (en) Method for document viewing
US5748234A (en) Video processing system and method
CN1960442B (en) Image capturing apparatus and image capturing method
US6307974B1 (en) Image processing apparatus, system, and method with adaptive transfer
WO1993013625A1 (en) Method and apparatus for data redcution in a video image data reduction system
CN1314210C (en) Method and device for data transmission by dynamic adjusting compaction rate
JPWO2003073763A1 (en) Camera server and image distribution method
TW201351159A (en) Transmission system capable of dynamically setting transmission profile and its control method
US11646001B2 (en) Display device, data processor, data processing method, driving method, storage medium, and electronic device
EP2028641B1 (en) KVM switch and method for controlling the same
JP3967443B2 (en) Image data transmission / reception system, transmitting apparatus thereof, receiving apparatus thereof, and storage medium storing program thereof
CN104079859A (en) Video transmission rate self-adaption system based on feedback mechanism
EP0634726B1 (en) Inverse discrete cosine transformer
CN1332575A (en) Dynamic digital image transmitting method and device
CN1910920A (en) Adaptive bandwidth allocation method and system for AV signal distribution
US20140098852A1 (en) Compression bandwidth overflow management using auxiliary control channel
CN1364014A (en) Data bus system including source control device and transmitting station
GB2375447A (en) Encoding video signal for transmission over low bandwidth cabling
JP2004080200A (en) Data communication terminal
KR0183194B1 (en) Compressed image data transmitter
CN210428420U (en) Display adapting device without frame buffer
EP0843483A2 (en) A method for decoding encoded video data
CN112333472A (en) Video transmission method, signal transmitter and signal receiver
CN116708694A (en) Video image acquisition and segmentation device, video decoding device and video segmentation method

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070502

Termination date: 20200510