How to troubleshoot communication anomalies caused by baud rate drift

The protocol decoding function of the oscilloscope is not unfamiliar. Have you ever experienced that the waveform looks normal, the protocol parameters and decoding settings are correct, but it cannot be decoded normally? This article takes the UART protocol as an example to share the troubleshooting process caused by the baud rate drift.
What is the baud rate drift? It can be understood that the crystal of the measured component has a deviation, which causes the actual baud rate to be inconsistent with the normal baud rate. Why is the baud rate drift causing communication anomalies? This article starts with the waveform and takes your self-test decoding results.
First, the baud rate drift causes troubleshooting of communication anomalies
Leading to such a real example, the serial port data sent by the PC is "0xEE 0x61 0x32 0xFF 0xFC 0xFF 0xFF", and the oscilloscope decoding result is "0xEE 0x98 0xF6 0xFC 0xFF" to initially determine the communication failure. However, the protocol parameter setting and decoding settings are correct. Why is there a problem of inconsistent transmission and reception? In the following, the baud rate in the protocol parameter setting during decoding is set to 9600 bps, the actual 9600 bps, 10126 bps waveform decoding results comparison (as shown in Figure 1) analysis as an example, sharing the baud rate drift results in a waveform There is a deviation, and thus the cause of the communication abnormality is investigated.

Figure 1 Different waveform decoding results at the same decoding baud rate
First talk about the decoding principle of UART. When the oscilloscope decodes the UART signal, the falling edge after the idle level is used as the start bit, and then the samples are equally spaced from the waveform, and most of the samples in the equally spaced time segments are used as the decoded value of the bit. Waveforms with different baud rates, the minimum data bit width is inconsistent, time T=1/sampling rate, the time corresponding to the waveform with large actual sampling rate is small, so the waveform with the baud rate of 10126 bps can be seen from Figure 1. Left shifted. When the baud rate set during decoding is 9600, the position of the sampling point is determined according to the baud rate of 9600. When the actual sampling rate is deviated from 9600 bps, the error will gradually accumulate, resulting in deviation of decoding. The larger the data bit width is set, the easier it is to superimpose the error.
Second, self-test baud rate method
Starting from the waveform, the baud rate is estimated based on the minimum bit width of the waveform. This method is suitable when the baud rate deviation is large or the baud rate is not determined. This is a self-test method that engineers are more accustomed to. To estimate the baud rate, you need to look at the minimum bit width in the waveform. As you can see from Figure 2, the time base gear is 100us, and the minimum bit width is just one grid. The minimum bit width is about 100us, which is equal to 10000bps after conversion. To get a more accurate baud rate value, you can use the oscilloscope's measurement function. Open the measure in the oscilloscope panel, select the baud rate measurement item, and observe the comparison of the baud rate measurement results, as shown in the red box in Figure 2.
The example cited at the beginning is because the baud rate has drifted, actually 10000 bps, and the decoding is set according to the normal component of 9600 bps. Therefore, the baud rate error is greater than 4%, so the decoding result will not be correct. After changing the crystal to decode, the communication is normal.

Figure 2 Estimating the baud rate from the minimum bit width of the waveform
to sum up
Although the baud rate is only a parameter in decoding, the effect of drift can not be ignored, it may be the cause of communication failure. Be careful to check the baud rate before decoding. Such a small detail may save you the time to troubleshoot in the future. From the waveform, re-examine the value of the oscilloscope. It is used to observe the waveform and analyze the data in order to detect whether the measured component is normal.

White Kraft Paper Open-Window Bag

1.Material:this type of paper bag is made out of 100% natural virgin wood pulp or recycled paper,which has no pungent odor. The raw materials which are selected carefully and imported from USA will be dealt with special process.The imported original wood pulp with 450 ° c high temperature sterilization is not easy to break and tear up.All the paper we used to manufacture the paper bag is not only super durable and reinforcement but also ECO friendly ,biodegradable,compostable environmental-friendly,natural friendly and PLA recyclable Owing to this good quality materials.We have very high standards on controlling raw materials.So that the supporting weight of our paper bag holds up to higher than those at the market. Reuse the paper bags as many times as you like and recycle them when you are done for a greener Earth! We offer a wide variety of material and color option to meet your requirements.we also supply PE coated,poly or aluminum laminatived or double glud lining inner paper,which is water proof,oil proof,grease proof,moisture resistance,weather proof,anti-slip anti-skid,etc.

2.Size:Multi customized sizes are available,we accept personalized sizes.Different sizes including small,medium and large measurement which are suitable for different usages.It`s versatile.we category for kinds of industrial usage.

3.Handles:One reasons of this type of paper bag of excellent quality is for seeking a more luxurious handle solution all the paper bags handles are produced by fully automatic machines. Sturdy round twisted,flat,die cut,holes,eyelet,patch,cotton robbin,grosgrain rope,PP rope handles of paper bags are made of 100% cellulose and fiber .They do not come out with an ease even you pull them with hard force.These handles are adhered with good quality super glue by fully automatic machines instead of handmade.which looks more elegant,clear,beautiful,sanitary,flat,reinforcement than handmade.So that it creats a smooth,elegant finish for the bags.No stray glue any where like other paper bags do.it's more convenient and make purchase easy to carry,take away,to go etc.

4.Bottom: Reinforcement flat ,square rectangle,block bottom is easy to stand up ,which is neat and flat without glue outside.We deal with the bottom carefully in order not to break easily.You don't need to worry about stuff fall down from the paper bag and make a trouble mess.A good quality bottom will be more useful and helpful which is also made by fully automatic machines.It is not only solid but also strong enough to support heavy duty weight.It can take whatever the light or heavy stuff inside the paper bag.They are not only durable and convenient but also environmental friendly compostable and recyclable.

5.Printing:We have the best advanced technology fully automatic printing machines which can support up to 8 colours printing.We accept customer designs and logos.Gravure printing,embossing printing,debossing printing,hot stamping,screen printing,UV printing,offset printing,flexo printing with CMYK pantone non-toxic water based ink are all available. Our printing has a pretty good quality as the printing of the designs is not only more durable,sun proof,weather proof but also beautiful and bright,which absorbs ink well and is stable not easy to tide the color.We aslo supply plainpaper bag, which are perfect for craft and DIY. Printed and embellished as you may wish. Personalize the bags to make them uniquely yours. Print your own business logo and use them as retail carry bags.

6.Surface handling:we supply glossy and matte surface dealing.This all depends on customer`s requirements.Whatever the glossy or matte surface makes the bag more luxurous.

7.Appication: paper bags with kinds of hanles are perfect for packing shoes,clothing, wine, gifts,etc.They are great suitable for any occations and affordable for small to medium businesses, parties & events, wedding reception and start-up business.

8.Quatity inspection systerm : One of the reasons for our good Quality is that inspection system is best of its kind. We're proud of our quality control system. Our standards are very high. we put great stress on quality of products.Almost every process is computerized.. All products have to pass strict inspection before they go out. I believe the quality is soul of an enterprise. So we won't sacrifice the quality for quick profit.All of our products are suitable for the world market. Our products has always come up to international standards. We have trained analysts to do quality analysis of each process when we make the product.We also provide quality analysis training as part of training for new workers plus a week of futher training every year. So our products are well known for their fine quality. All the paper bag are received a warm welcome in the world market wherever they go.Our clients are all satisfied with them.

9.Sample:We offer free samples between three and five days, but excluding complicate condition upon customer`s requirnments.For instance, we charge you like 50 dollars for samples,but we will refund you after placing an order.The expenses of samples delivery can be nagotiated.

10.Our factory: Jinan Xin Shun Yuan Packing Co., Ltd is located in Ningjiabu Industrial Park,Zhangqiu district, Jinan city, Shandong province, China.It originated in Shandong Printing Factory (founded in 1994).It is professional manufacture of new environmental-friendly packing bag based printing processing enterprise with more than 12 years of experience in production and management.Recent years, our scale is expanding. Covering an area of about 2 million square meters. And also expand our equipment, like unit type flexo printing machines, satellite adagio printing machines, lamination type flexo printing machines, gravureprinting , dry laminating machines, automatic square bottom paper bag machines, food paper bag machines, automatic control stick bag machines, trilateral, edges the closure, self-reliance paper bag machines, CNC cutting machines.We have 8 sets flexo printing machines, 1 set Gravure printing machine;12 sets Paper bag machines ; 5 sets cutting machines, tin tie machines;30 sets heat sealing machines ; 3 sets glue coating machines , etc. We have150 staff menbers,18 management staff ,12 salesmen and 120 workers. We have ISO9001, FSC certificates.

11.Packing & Shipment:Standard export packing, 250PCS or 500PCS each carton. We try our best to make sure the packing is seaworth and strong enough to stand the rough handling in a long distance shipment .In order to ensure the packing is moisture resistance,water proof,weather proof etc.The packing corrugated cartons therefore are lined with plastic bag from inside and strengthened double solid plastic straps.We have rich experience on packing.We normally do not only provide air transportment and sea transportment but also multi modal combined transportments,which is up to customer`s requirements.

12.Payment methord: L/C,D/A,D/P,T/T,Western Union,MoneyGram Paypal payments.

13.Our service:we are in 24/7 service,we are responsibilable for replacing the defect products.Feel free to talk to us.


White Paper Bag With Window,Bakery Bags With Window,White Bag With Window,Paper Cookie Bags With Window

JINAN XINSHUNYUAN PACKING CO., LTD , https://www.xsy-packaging.com