Questions tagged [baud-rate]

"baud-rate" refers to the number of signal or symbol changes that occur per unit time. This tag is for questions that get, set, or otherwise manipulate the baud rate.

In telecommunications and electronics, baud (/ˈbɔːd/, unit symbol "Bd") means symbols per second or pulses per second. A symbol being one of several voltage, frequency, or phase changes.

Thus a "baud-rate" refers to the number of signal or symbol changes that occur over time—most commonly per second. A baud rate differs from a bit-rate in that a single symbol transition (baud) can communicate more than one bit during the interval, whereas a bit rate is a single bit per interval. However, if only two symbols are defined for some system, e.g. "0" and "1", then the baud/bit rates are synonymous.

This tag is OS and Language independent, as long as there's a mechanism for manipulating the serial data rate this tag can apply.

211 questions
5
votes
1 answer

setting baud rate for UsbDeviceConnection

I am trying to get Android USB host mode to work; but I need to set the baud rate to 56000. I only found this code: UsbDeviceConnection myConnection; myConnection.controlTransfer(0x40, 0x03, 0x4138, 0, null, 0, 0);//baudrate 9600 In the references…
user387184
  • 10,953
  • 12
  • 77
  • 147
5
votes
3 answers

Auto baud rate detect for STM32L0

I can't get auto-baud rate detection to work on the STM32L0. I'm using the hardware abstraction layer (HAL). My initialization code is: /* USART1 init function */ void MX_USART1_UART_Init(void) { huart1.Instance = USART1; huart1.Init.BaudRate =…
Flying Swissman
  • 818
  • 2
  • 14
  • 39
5
votes
3 answers

Maximum Beaglebone Black UART baud?

I have been looking around for UART baud rates supported by the Beaglebone Black (BB). I can't find it in the BB system reference manual or the datasheet for the sitara processor itself. I am using pyserial and the Adafruit BBIO library to…
InvictusRex28
  • 73
  • 1
  • 10
5
votes
2 answers

C# SerialPort - Problems mixing ports with different baud rates

I have two devices that I would like to connect over a serial interface, but they have incompatible connections. To get around this problem, I connected them both to my PC and I'm working on a C# program that will route traffic on COM port X to COM…
GrandAdmiral
  • 1,348
  • 2
  • 24
  • 52
5
votes
1 answer

Why are the input and output baud rates always the same?

I've got a simple program setting the baud rate for a serial (RS232) port. I'm setting the input and output rates independently using the cfsetospeed() and cfsetispeed() functions. As per the man page, this should be possible provided I use these…
Mike
  • 47,263
  • 29
  • 113
  • 177
4
votes
2 answers

Change baudrate in pySerial while connected to device?

I'm trying to write a script for a LCD device called the uLCD32-pt and the issue is that you are required to connect to it with a baudrate of 9600 and in order to get a higher baud rate you have to connect to it, send a change baudrate command, then…
Xenland
  • 510
  • 1
  • 6
  • 19
4
votes
3 answers

PHP to serial with weird baud rates

I am trying to use PHP to send text to an LED sign so I can send support ticket numbers to it. The sign itself is a piece of work; it came from eBay and is poorly made with almost no documentation. After fiddling with it for a while, I was able to…
blueintegral
  • 1,253
  • 5
  • 20
  • 31
4
votes
1 answer

C code for non-standard baud rate on Debian/Raspberry Pi

I'm working with a hardware device which only operates with the non-standard baud rate of 625000. I need to connect to and read and write data from this device via a USB port. Hence I've been trying to develop a little C program which will allow me…
precicely
  • 511
  • 6
  • 17
4
votes
2 answers

SerialPort received data lost at high baudrates when stream contains 0x1A

I am implementing a C# application which reads binary data from a microcontroller at a high baudrate (8 MegaBaud) using an USB-Serial adapter (FTDI FT232H). The problem is when the stream contains 0x1A, sometimes a big chunk of data (thousands of…
nnn
  • 3,980
  • 1
  • 13
  • 17
4
votes
1 answer

How to set Android Bluetooth Baud Rate to 19200 programatically?

I'm new to Android and im developping an application to talk with an Actuator via Bluetooth. When trying divers Codes i faced a problem with the Baudrate as the Actuator Bluetooth BaudRate is 19200 while the Android Tablet is 9600. Can anyone tell…
Triki
  • 41
  • 1
  • 1
  • 3
4
votes
0 answers

Serial port baud rate change delay

When setting baud rate of an open serial port, how long shall we wait before baud rate actually changes? I guess this depends on the driver of the port, right? (especially if it's not a real serial port). In this case, is there any way to get an…
Hamed
  • 279
  • 1
  • 3
  • 13
3
votes
1 answer

How are serial ports set to 19200 baud in x86 assembly?

I'm supposed to modify an application written in 16-bit assembly which uses serial port. One of the objectives is to support speed of 19200 baud. Most of the resources I've read (for example this) on the Internet show the way of doing it using INT…
AndrejaKo
  • 1,721
  • 5
  • 25
  • 41
3
votes
3 answers

STM32 UART in DMA mode stops receiving after receiving from a host with wrong baud rate

The scenario: I have a STM32 MCU, which uses an UART in DMA Mode with Idle Interrupt for RS485 data transfer. The baud rate of the UART is set in CubeMX, in this case to 115200. My Code works fine, when the Host uses the correct baud rate, it is…
Chris_B
  • 359
  • 5
  • 13
3
votes
1 answer

Error running 01 46, response: ...UNABLETOCONNECT

Getting the data from OBD II simulator to android application via Bluetooth successfully. Now I am trying get the data from ELM327 device to android application. I have an ELM327 device connected to my Car. Bluetooth connection happens by ECU…
GNK
  • 1,036
  • 2
  • 10
  • 29
3
votes
3 answers

How can I change the stdout baud rate in ESP-IDF?

I wrote a small program on PlatformIO for an ESP32 with ESP-IDF framework. Currently this is connected to my PC with USB cable. I receive lots of data from a CAN-BUS and I print this data with printf() It seems the output with the standard baud rate…
Edgar
  • 2,527
  • 2
  • 19
  • 40
1
2
3
14 15