CN101354688B - Apparatus and method for regulating data transmission velocity - Google Patents

Apparatus and method for regulating data transmission velocity Download PDF

Info

Publication number
CN101354688B
CN101354688B CN2007100294240A CN200710029424A CN101354688B CN 101354688 B CN101354688 B CN 101354688B CN 2007100294240 A CN2007100294240 A CN 2007100294240A CN 200710029424 A CN200710029424 A CN 200710029424A CN 101354688 B CN101354688 B CN 101354688B
Authority
CN
China
Prior art keywords
data
transfer rate
rate
data transmission
transmission velocity
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.)
Active
Application number
CN2007100294240A
Other languages
Chinese (zh)
Other versions
CN101354688A (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.)
Mitac Computer Shunde Ltd
Shunda Computer Factory Co Ltd
Mitac International Corp
Original Assignee
Mitac Computer Shunde Ltd
Mitac International 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 Mitac Computer Shunde Ltd, Mitac International Corp filed Critical Mitac Computer Shunde Ltd
Priority to CN2007100294240A priority Critical patent/CN101354688B/en
Publication of CN101354688A publication Critical patent/CN101354688A/en
Application granted granted Critical
Publication of CN101354688B publication Critical patent/CN101354688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a device and a method for adjusting the data transmission rate. The device comprises a drive module and a control module, wherein the drive module performs preset calculation according to a transmission rate request, so as to generate a divisor value; the control module makes a reference frequency divided by the divisor value, so as to generate a first transmission rate, then a data receiving end can receive data transmitted by a data transmitting end with the first transmission rate through the drive module; and the drive module monitors the transmission error rate ofthe received date, automatically adjusts the divisor value if the transmission error rate exceeds a default value so as to generate a second transmission rate, and provides the second transmission rate to the data receiving end instead of the first transmission rate. Therefore, the data transmission rate can be adjusted by the device so as to guarantee that the data transmitting end and the data receiving end transmit and receive data with the same transmission rate, consequently data transmission is guaranteed to be correct and the data transmission error rate is reduced.

Description

The regulating data transmission velocity device and method
Technical field
The invention provides a kind of regulating data transmission velocity device and method, particularly a kind of seeing through adjusted message transmission rate, to reduce the device and method of data transmission transmitted error rate.
Background technology
General two kinds of devices are when carrying out data transmission, data sending terminal and data receiver need to carry out the data sending and receiving with identical traffic speed, can guarantee that just data transmission is correct, for example: UART Universal Asynchronous Receiver Transmitter (Universal Asynchronous Receiver Transmitter, UART) be to be used in transmission interface the most general in the embedded system at present, and its host-host protocol is a transmission speed, the unit of transmission speed represents with baud rate (Baud Rate) usually, be that Bit Per Second is weighed, the normal baud rate of using of general UART Universal Asynchronous Receiver Transmitter has 1200,2400,4800,9600 and 19200 or the like, and the device two ends promptly need use identical baud rate correctly to transmit.Transfer rate normally produces divided by a divisor (Divisor) with the higher reference frequency of a frequency, and different transfer rates can have corresponding divisor respectively.
Yet, because the computing method of different vendor are slightly different, add the error that rounds up and caused of division, the transfer rate that causes generating at last is offset to some extent.Therefore, if apparatus for transmitting data is the product of different vendor mutually, even be set at identical baud rate, right actual transfer rate each other still is variant, cause data when transmitting, poor (Frame Error) phenomenon of Zheng Wrong takes place often and cause transmission efficiency to descend, especially work as the high more of baud rate setting, this phenomenon is obvious more.
By solving the problem that above-mentioned proposition causes transmission efficiency to reduce because of the transfer rate error, the inventor is based on going in for the study for many years and many practical experience, through research and design and special topic are inquired in many ways, then a kind of regulating data transmission velocity device and method is proposed, with as aforementioned expectation one implementation and foundation in the present invention.
Summary of the invention
Because the problems referred to above, purpose of the present invention is for providing a kind of regulating data transmission velocity device and method, and particularly a kind of seeing through adjusted message transmission rate, to reduce the system and method for data transmission transmitted error rate.
For reaching above-mentioned purpose, according to the regulating data transmission velocity device described in the present invention, it comprises a driver module, a control module.Driver module is to carry out a default calculation to produce a divider value according to a transfer rate request; Control module be with a reference frequency divided by this divider value, to produce one first transfer rate, a data receiver is got can receive the data that a data sending terminal is sent with first transfer rate via driver module.Wherein, driver module is a transmitted error rate of monitoring received data, if transmitted error rate surpasses a default value, this divider value of adjustment then, and control module is divided by the divider value of adjustment with reference frequency, producing one second transfer rate, and provide second transfer rate to give Data Receiving to bring in the reception data.
From the above, because of complying with regulating data transmission velocity device and method of the present invention, it sees through the data transmission state between a driver module monitor data transmitting terminal and the data receiver, automatic adjustment divider value when transmitted error rate surpasses a default value, make transfer rate with adjustment level off to the transfer rate request of data sending terminal, can effectively reduce the generation of error of transmission.Simultaneously, data receiver also can dynamically be adjusted transfer rate to mate different data sending terminals, to reach preferable data transmission efficiency.
By regulating data transmission velocity device and method of the present invention, guarantee that by the speed of adjusting data transmission data sending terminal and data receiver need to carry out the data sending and receiving with identical traffic speed, and then guarantee that data transmission is correct, reduced the data transmission transmitted error rate.
Description of drawings
Fig. 1 is for showing the calcspar of regulating data transmission velocity device of the present invention;
Fig. 2 is the calcspar of the preferred embodiment of demonstration regulating data transmission velocity device of the present invention;
Fig. 3 is for showing the flow chart of steps of regulating data transmission velocity method of the present invention;
Fig. 4 is the flow chart of steps of the preferred embodiment of demonstration regulating data transmission velocity method of the present invention.
Embodiment
Hereinafter with reference to correlative type, the regulating data transmission velocity device and method according to preferred embodiment of the present invention is described, wherein identical assembly will be illustrated with identical reference marks.
See also Fig. 1, it is for showing the calcspar of logarithmic data transfer rate calibration apparatus of the present invention.Among the figure, regulating data transmission velocity device 1 comprises a driver module 12, a control module 13.Driver module 12 is to carry out a default calculation to produce a divider value 16 according to a transfer rate request 10, control module 13 is divided by this divider value 16 with a reference frequency, to produce one first transfer rate 131, data receiver 14 is with first transfer rate 131, receives the data 15 that data sending terminal 11 is sent via driver module 12.Wherein, driver module 12 is the transmitted error rate that monitor data receiving end 14 receives data 15, if transmitted error rate surpasses a default value, then adjustment divider value 16, producing one second transfer rate 132, and provide second transfer rate 132 to give data receiver 14 to replace first transfer rate 131.
Wherein, above-mentioned reference frequency is preferable to be provided by a central processing unit, one unit of above-mentioned first transfer rate and second transfer rate is a baud rate, when above-mentioned data receiver receives data, be preferably and see through a UART Universal Asynchronous Receiver Transmitter, one USB (universal serial bus) (Universal Serial Bus, USB), the transmission interface of one wireless network transmissions interface or any pattern, above-mentioned control module is preferably a UART Universal Asynchronous Receiver Transmitter controller (UART Controller), above-mentioned control module comprises a status register (StatusRegister) in addition, in order to store the mode of operation of control module, driver module is the transmitted error rate that sees through this status register monitor data receiving end received data, above-mentioned control module more comprises one and removes number register, driver module is that divider value is stored in except that number register, use to provide control module to carry out computing, above-mentioned transmitted error rate is in the received data frame (Data Frame), the occurrence rate of frame error (Frame Error).
See also Fig. 2, it is the calcspar of the preferred embodiment of demonstration regulating data transmission velocity device of the present invention.Among the figure, the regulating data transmission velocity device comprises a serial driver 22, a serial module 24 and a UART Universal Asynchronous Receiver Transmitter controller 23.As shown, application software 21 is the baud rate requests 20 of sending expectation, after driven in series program 22 receives this baud rate request 211, carry out a default calculation to produce a divider value 26 according to the baud rate value of application software 21 expectations, and the number register 234 that removes that this divider value 26 is sent to UART Universal Asynchronous Receiver Transmitter controller 23 stored, UART Universal Asynchronous Receiver Transmitter controller 23 with a reference frequency 271 divided by this divider value 26, to produce one first baud rate 231, serial module 24 receives the serial data 25 that application software 21 is sent just with this first baud rate 231 via driven in series program 22.Wherein, driven in series program 22 is that the status register 233 that sees through UART Universal Asynchronous Receiver Transmitter controller 23 is monitored the occurrence rate that serial modules 24 receive the frame error of serial datas 25, when this ratio surpasses a default value, it is automatic adjustment divider value 26, to produce one second baud rate 232, this second baud rate 232 can be than first baud rate 231 more near the Transmission bit rate of application software 21 expectations, provide then this second baud rate 232 to serial module 24 to replace first baud rate 231.
For example, when application software 21 wants communication baud rate with bottom serial module 24 to be 4800bps, it can notify the driven in series program 22 these demands, the divider value 26 that this moment, driven in series program 22 was calculated according to formula, default baud rate producing method is to see through a frequency eliminator to produce divider value 26, therefore, when reference frequency 271 is wished to get the baud rate of 4800bps for 928KHz, then the default value of divider value 26 is 192, its actual baud rate that generates but is 4836bps, with the baud rate that requires error to some extent, in case this error arrives the tolerance of UART greatly, transmission just can produce a large amount of frame errors, driven in series program 22 meeting supervisory frame error rates (Frame Error Rate), in case frame error rate surpasses a default value, just automatic fine tuning divider value 26, according to above-mentioned example, if with divider value 26 from 192 adjustment to 193, its universal asynchronous receiving-transmitting transmission interface controller 23 actual baud rates that produce can become 4811bps, so just more level off to the expectation Transmission bit rate value of application software 21, and the frame error rate that makes reduces.
See also Fig. 3, it is for showing the flow chart of steps of regulating data transmission velocity method of the present invention, and its step is as follows:
Step S31: receive a transfer rate request;
Step S32: carry out a default calculation to produce a divider value according to this transfer rate request;
Step S33: with a reference frequency divided by this divider value, to produce one first transfer rate;
Step S34: provide first transfer rate to give a data receiver, make data receiver utilize first transfer rate to receive the data that data sending terminal sent; And
Step S35: one of data that the monitor data receiving end is received transmitted error rate, if transmitted error rate surpasses a default value, automatic adjustment divider value then producing one second transfer rate, and provides second transfer rate to give data receiver to replace first transfer rate.
Wherein, shown in Fig. 1 and Fig. 2, above-mentioned reference frequency 271 is provided by a central processing unit 27, one unit of above-mentioned first transfer rate 131 and second transfer rate 132 is a baud rate, when above-mentioned data receiver 14 receives data 15, be the transmission interface that sees through a UART Universal Asynchronous Receiver Transmitter, a USB (universal serial bus), a wireless network transmissions interface or any pattern, above-mentioned transmitted error rate is in 14 received frames of data receiver (Frame), the occurrence rate of frame error rate.
See also Fig. 4, it is the flow chart of steps of the preferred embodiment of demonstration regulating data transmission velocity method of the present invention, and its step is as follows:
Step S41: application software is opened relevant COM port;
Step S42: application software is set the baud rate of expectation;
Step S43: begin to see through the UART Universal Asynchronous Receiver Transmitter transceive data;
Step S44: monitor whether frame error rate surpasses a default value;
Step S45: check whether exceed the adjustment scope; And
Step S46: the divider value of adjustment register.
Wherein, when the adjustment divider value, should set up a threshold value, when frame error rate is just carried out the adjustment action during greater than this default threshold value, and the trial scope of divider value adjustment also should drop in the positive and negative scope originally, when can not find suitable divider value in this scope, supposing that just frame error is not because the baud rate deviation causes, may be other possibility of upper application software numerical value of setting mistake or the like itself, just abandon this moment adjusting action, do not need to continue again the adjustment divider value.

Claims (13)

1. a regulating data transmission velocity device is applicable to a data receiver, it is characterized in that, this regulating data transmission velocity device comprises:
One driver module is to carry out a default calculation to produce a divider value according to a transfer rate request;
One control module, be with a reference frequency divided by this divider value, to produce one first transfer rate, cause this data receiver to receive the data that a data sending terminal is sent with this first transfer rate via this driver module;
Wherein, described driver module is a transmitted error rate of monitoring received data, if this transmitted error rate surpasses a default value, then this driver module is for carrying out adjustment action to this divider value, and described control module according to one the divider value of adjustment produce one second transfer rate, cause this data receiver to receive this data with this second transfer rate via this driver module.
2. as claim 1 a described regulating data transmission velocity device, it is characterized in that described reference frequency is provided by a central processing unit.
3. as claim 1 a described regulating data transmission velocity device, it is characterized in that a unit of described first transfer rate and second transfer rate is a baud rate.
4. as claim 1 a described regulating data transmission velocity device, it is characterized in that, when described data receiver receives these data, be the transmission interface that sees through a UART Universal Asynchronous Receiver Transmitter, a USB (universal serial bus), a wireless network transmissions interface or any pattern.
5. as claim 1 a described regulating data transmission velocity device, it is characterized in that described control module is included as a UART Universal Asynchronous Receiver Transmitter controller.
6. as claim 1 a described regulating data transmission velocity device, it is characterized in that, described control module more comprises a status register, is in order to storing the mode of operation of this control module, and this driver module is monitored this transmitted error rate for seeing through this status register.
7. as claim 1 a described regulating data transmission velocity device, it is characterized in that described control module more comprises one and removes number register, this driver module is that divider value is stored in except that number register, uses to provide control module to carry out computing.
8. as claim 1 a described regulating data transmission velocity device, it is characterized in that described transmitted error rate is the occurrence rate of the Frame De Zheng Wrong difference that this data receiver received.
9. a regulating data transmission velocity method is applicable to a data receiver, it is characterized in that, comprises following steps:
Receive a transfer rate request;
Carry out a default calculation to produce a divider value according to this transfer rate request;
With a reference frequency divided by this divider value, to produce one first transfer rate;
Provide this first transfer rate to give this data receiver, make this data receiver receive the data that a data sending terminal is sent according to this first transfer rate; And
One transmitted error rate of these data that monitoring is received, if this transmitted error rate surpasses a default value, this divider value of adjustment then, with this reference frequency divided by the divider value of adjustment, to produce one second transfer rate, and provide this second transfer rate to give data receiver, make this data receiver receive this data according to this second transfer rate.
10. regulating data transmission velocity method as claimed in claim 9 is characterized in that, described reference frequency is provided by a central processing unit.
11. regulating data transmission velocity method as claimed in claim 9 is characterized in that, a unit of described first transfer rate and second transfer rate is a baud rate.
12. regulating data transmission velocity method as claimed in claim 9, it is characterized in that, when described data receiver receives these data, be the transmission interface that sees through a UART Universal Asynchronous Receiver Transmitter, a USB (universal serial bus), a wireless network transmissions interface or any pattern.
13. regulating data transmission velocity method as claimed in claim 9 is characterized in that, described transmitted error rate is the occurrence rate of the Frame Zhong Zheng Wrong difference that data receiver received.
CN2007100294240A 2007-07-27 2007-07-27 Apparatus and method for regulating data transmission velocity Active CN101354688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100294240A CN101354688B (en) 2007-07-27 2007-07-27 Apparatus and method for regulating data transmission velocity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100294240A CN101354688B (en) 2007-07-27 2007-07-27 Apparatus and method for regulating data transmission velocity

Publications (2)

Publication Number Publication Date
CN101354688A CN101354688A (en) 2009-01-28
CN101354688B true CN101354688B (en) 2010-08-25

Family

ID=40307504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100294240A Active CN101354688B (en) 2007-07-27 2007-07-27 Apparatus and method for regulating data transmission velocity

Country Status (1)

Country Link
CN (1) CN101354688B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904564B (en) * 2011-07-29 2015-12-09 瑞昱半导体股份有限公司 For method and the relevant apparatus of the drive current of adjustment transmission interface
CN105245273B (en) * 2015-08-27 2017-12-12 桂林理工大学 A kind of balanced RS232 of illumination and VLC communication protocol conversion methods
CN107590094A (en) * 2017-09-28 2018-01-16 深圳市道通科技股份有限公司 A kind of serial duplex signaling method, apparatus and computer-readable recording medium
CN116405442A (en) * 2023-03-06 2023-07-07 中国电信股份有限公司卫星通信分公司 Network transmission rate control method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0946017A2 (en) * 1998-03-23 1999-09-29 Nec Corporation Data transmission device
US20020181040A1 (en) * 2001-06-05 2002-12-05 Alcatel Decision circuit for high data rates as well as eye monitor, pseudoerror monitor, and system using the circuit
CN1455898A (en) * 2001-01-15 2003-11-12 印芬龙科技股份有限公司 Data receiving circuit
US20040114506A1 (en) * 2002-11-28 2004-06-17 Kyung-Hi Chang Transmitting and receiving method for reducing distortion caused by a time-varying channel in an orthogonal frequency division multiplex system
CN1518233A (en) * 2003-01-23 2004-08-04 夏普株式会社 Transmitting-receiving circuit, transmitting-receiving method and transmitting-receiving device
CN1692597A (en) * 2001-10-26 2005-11-02 国际商业机器公司 Transition detection, validation and memorization circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0946017A2 (en) * 1998-03-23 1999-09-29 Nec Corporation Data transmission device
CN1455898A (en) * 2001-01-15 2003-11-12 印芬龙科技股份有限公司 Data receiving circuit
US20020181040A1 (en) * 2001-06-05 2002-12-05 Alcatel Decision circuit for high data rates as well as eye monitor, pseudoerror monitor, and system using the circuit
CN1692597A (en) * 2001-10-26 2005-11-02 国际商业机器公司 Transition detection, validation and memorization circuit
US20040114506A1 (en) * 2002-11-28 2004-06-17 Kyung-Hi Chang Transmitting and receiving method for reducing distortion caused by a time-varying channel in an orthogonal frequency division multiplex system
CN1518233A (en) * 2003-01-23 2004-08-04 夏普株式会社 Transmitting-receiving circuit, transmitting-receiving method and transmitting-receiving device

Also Published As

Publication number Publication date
CN101354688A (en) 2009-01-28

Similar Documents

Publication Publication Date Title
US7836199B2 (en) System and method for multilane link rate negotiation
CN102170338B (en) Method and device for transmitting ACKNACK feedback information
RU2006135633A (en) DEVICE AND METHOD FOR IMPLEMENTING INTERFACE WITH HIGH DATA TRANSMISSION SPEED
CN101354688B (en) Apparatus and method for regulating data transmission velocity
CN103532680A (en) HARQ-ACK unintended disposal of the downlink sub-frame
CN109474391A (en) A kind of feedback information transmission method, device, terminal, base station and storage medium
EP2062373B1 (en) Communication device and method of limiting quantity of data and power transmitted by a communication device
US9654999B2 (en) Apparatus and method to reduce a rate of receiving data
EP2348675B1 (en) Network system, network interconnection device and data transmission method
CN107222298A (en) A kind of data transmission method and device
CN103312719A (en) Rate self-adaptive transmission method based on UDP (User Datagram Protocol) under network environment
CN103051558A (en) Traffic control method for near field communication software stack logical link layer
CN104102607A (en) CAN (controlled area network) bus driving method and system based on VxWorks operating system environment
CN104158683A (en) Cross-device aggregation group rapid convergence method, and cross-device aggregation group rapid convergence device
US7881363B2 (en) Data transmission rate adjustment system and method thereof
CN101197612B (en) Method and device for computing activation time
CN104348645A (en) Server and data transmission method of server
CN111182517A (en) CAN and Bluetooth data conversion system and data transmission method thereof
CN103873189A (en) Data transmission method and device
CN109309549B (en) Feedback duration indication and confirmation method, base station and user equipment
CN115061969A (en) Cleaning equipment and baud rate self-adaptive adjusting method and system thereof
CN102237981B (en) Method and equipment for transmitting ACK (Acknowledgement)/NACK (Negative Acknowledgement) information
CN104917704A (en) Method and system for multiplexing 10GBase-R PCSs and 40GBase-R PCSs in the same architecture
CN110807845A (en) Task sending method and device based on intelligent water dispenser and server
CN103781128A (en) Optimization method of wireless transmission speed

Legal Events

Date Code Title Description
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