The issue that I am having is that if I use a 9600 baudrate the logic analyzer decodes the message perfectly, but if I use 115200 baudrate it gives the following errors when decoding:
No, they are NOT the same, but most people use them an being the same. Baud rate refers to "flux changes per second", meaning voltage changes per second. Consider a string of identical bits. There are NO changes between bits, The Baud rate counts ONLY the changes.
The bit rate is based on a clock identifying each bit, so a string of identical bits is counted correctly when compared to the clocking pulses.
Hello evansg124,
I feel the sampling rate with the high freq is to low. Check the setting in the logic and increase the sampling rate look out for unit MS/s.
Best regards Markus
We have some confusion about the subject of baudrate. One problem is that a UART needs a start bit and a stop bit besides the data bits. The protocol is not to be confused with NRZ coding or data bandwidth. Bits per second according to the clock rate is not the same as the data rate. Then there is the problem of using a parity bit that can be added but is not part of the data either. So, maybe baudrate is supposed to relate to the characters sent and not the clock speed.
That's a meaningful interpretation but not what baudrate means nowadays. The asynchronous transmitter and receiver hardware requires a known bit rate, known as baudrate, and a frame format. Each frame consists of a start bit, a number of data bits, optional parity bit, and at least one stop bit. The number of stop bits does not matter, it was only introduced to slow down the character transmission rate so that mechanical receivers (Teletype...) could advance the chariot after every character.
Likewise the line endings were specified as a sequence of CR and LF, where the Carriage Return started the slow movement of the print head back to the left margin, followed by a quick shift up of the paper (Line Feed) while the print head finishes its movement.
Baudrate is the rate at which "symbols" are transmitted and bit rate is the rate at which "bits" are transmitted.
Some transmission protocols transmit multiple bits per symbol. For example 4 QAM has 4 states (2 bits) per symbol, 16 QAM has 16 states (4 bits) per symbol. These sorts of things are common in acoustic and RF modems.
Arduino serial ports have two states per symbol (1 bit) so the bit rate and baud rate are the same number with slightly different meanings. In this asynchronous protocol, start bits, message bits, and stop bits are all binary (2 state) "symbols" whose interpretation is position dependent.
The only difference between bitrate and baudrate is the special baud rate sequence, starting at 50 Bd (Teletype), 110 Bd (typewriter) and 300 and binary multiples of it.
@evansg124 Have you tried sigrok/PulseView ? The Salae software is really good, but sigrok/PulseView is also really good.
A driver "Zadig" is needed for Windows, and you have go guess which driver to use, that is the weird part.
Oh no it hasn't! I'm an ex-teletype engineer and spent my career in the telecommunications industry.
Baud rate has nothing whatever to do with flux changes. The baud rate is the symbol rate. With basic serial comms like RS232, each symbol encodes one bit, so the bit rate and baud rate are the same.
With more advanced coding algorithms, each symbol can encode 4, 8, 16 or more bits. In the case of four bits, for example, a bit rate of 1200 bits per second requires 300 symbols per second, so you have a baud rate of 300 and a bit rate of 1200.
No. It has nothing whatever to do with stop and start bits, parity bits or anything else. The baud rate refers to the symbol rate.
The rest of what you wrote is correct, but that is completely wrong. The bit rate and baud rate are only the same when the transmission system only encodes one bit per symbol.
Nonsense.
More nonsense.
Colleagues, I've never read so much misinformation from so-called experts on this forum before. I worked for over 30 years in the telecommunications industry, and I can assure you that bit rate and baud rate are not the same thing, and they have nothing whatever to do with start bits, stop bits, frames, parity bits, or anything else.
The baud rate refers to the number of symbols per second. The bit rate refers to the number of bits per second.
Only in those limited cases where each symbol only encodes one bit (e.g. RS232) are the two numerically equal. All modern transmission systems send multiple bits per symbol, hence the baud rate is lower than the bit rate.