Questions tagged [uart]

A Universal Asynchronous Receiver/Transmitter (UART) is used for serial (where each bit of data is transmitted along the same connection) communications over a computer or peripheral device serial port.

UART is usually an individual (or part of an) integrated circuit used for serial communications over a computer or peripheral device serial port. UARTs are now commonly included in microcontrollers.

Simple serial link via UART uses two lines TxD and RxD, other than ground, for transmit and receive data:

Simple UART connection

It is asynchronous communication. Hence data transfer settings (number of bits, baudrate etc.) should be matched between devices wanting to communicate. The electric signaling levels and methods are handled by a driver circuit external to the UART.

More information:

1558 questions
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
  • 65
  • 1
  • 10
5
votes
1 answer

STM32F4 Handling peripheral error while making a DMA Transfer (RX)

I am trying to communicate with the UART peripheral using DMA for both RX and TX. I am using the HAL library that is supplied by ST (Generated with STCubeMX). I am handling a UART channel with 1.5MBaud - so in order to not loose any data, I've…
assaf
  • 210
  • 2
  • 8
5
votes
1 answer

Bit-banging with USB to Serial UART

I just bought the UM232R USB Serial UART Development Module which uses a FT232RL chip to emulate a UART-like interface over USB. I actually just bought this complicated module for a very simple purpose: to trigger a very simple LED circuit that I…
Forivin
  • 12,200
  • 21
  • 77
  • 171
5
votes
2 answers

What does "console [ttyS0] enabled mean?

I am trying to communicate between a single board computer and a PC over COM ports. On the single board computer I am running Debian Linux and there are two UARTs that I can use. On one of the UARTs (ttyS1) I can communicate (send and receive) with…
mikenycz
  • 71
  • 1
  • 1
  • 5
5
votes
1 answer

How to view PIC32 UART1 output in MPLABX simulator?

I am using MPLABX v1.80 , xc32 V1.21 and Microchip's sample uart code (the basic sample). I have selected the simulator in project properties. I have enabled UART1 for window output in project properties. I have tried compiling using both UART1 and…
monzie
  • 556
  • 5
  • 14
4
votes
1 answer

Write data to ESP32 over USB connection with MicroPython

I have an ESP32 connected to a computer via USB port. I can use the ESP32 to send data over the serial connection using the print statement, I need to periodically write commands into the ESP32. How do I read what is coming over the COM port on the…
Mike C.
  • 1,292
  • 1
  • 14
  • 32
4
votes
0 answers

Linux UART (16550A) RS485 mode

I'm trying to configure my serial port (/dev/ttyS0) to automatically control RTS pin. I already can do it from user space by ioctl TIOCM_RTS flag toggling but it's too slow in my case - slave device respond too fast and I miss it. I tried to achieve…
KPR
  • 91
  • 6
4
votes
1 answer

UART initialisation: Prevent UART to pull RTS high

I'm writing a RS485 driver for an ARM AT91SAM9260 board on Linux. When I initialise the UART, the RTS signal line gets high (1). I guess this would and should be the standard behaviour in RS232 operation mode. In RS485 mode however this is not…
Maus
  • 2,413
  • 4
  • 28
  • 37
4
votes
3 answers

IOError: [Errno 2] No such file or directory (when it really exist) Python

I'm working on transfer folder of files via uart in python. Below you see simple function, but there is a problem because I get error like in title : IOError: [Errno 2] No such file or directory: '1.jpg' where 1.jpg is one of the files in test…
user8207105
4
votes
1 answer

Linux read() latency

Is there a way to improve latency on serial port data processing in Linux (4.8)? In particular, the time between actual data on the line and when select() and read read() functions on this port return. Right now, my measurement shows 350…
ilya1725
  • 3,506
  • 6
  • 31
  • 53
4
votes
1 answer

Bus error debugging on arm cortex m4

I am trying to debug a precise bus error on a Arm cortex m4 chip. The board is a teensy 3.1 with a freescale MK20DX256VLH7. The error only happens when i actually send characters with the uart and results in a forced hard fault because i dont have…
P. Brand
  • 101
  • 6
4
votes
3 answers

Cannot transmit every characters through UART

I am using stm32f0 MCU. I would like to transmit every single byte received from the uart out of the uart. I am enabling an interrupt on every byte received from uart. My code is quite simple. uint8_t Rx_data[5]; //Interrupt callback routine void…
user781486
  • 20,909
  • 45
  • 145
  • 253
4
votes
1 answer

How to use multiple Software Serial in Arduino nano?

I'm working on a project that needs to use at least 2 serial communications (2 TXs and RXs) alternately and in different pins. I wonder if it is possible to program the Arduino Nano for this task. I conducted research on the internet and saw that…
Erick Luz
  • 142
  • 1
  • 1
  • 6
4
votes
1 answer

RS232 (UART) on STM32F4-Discovery (STM32F429ZIT6) with HAL library?

Background Here is some of my background so that your guy could know what related knowledge I have or I don't have. I'm totally a newbie of this kind of embedded system. And I don't really know anything about electronics, I'm a pure software guy. My…
Brian Hsu
  • 8,621
  • 3
  • 44
  • 59
4
votes
2 answers

UART over USB for STM32 Micro-controller

I'm trying to implement UART over a USB interface on the STM324x9I-EVAL development board. The purpose is to send commands to a servo controller (or other hardware, for that matter) serially. I've successfully implemented the USB_Device_CDC example…
mban
  • 421
  • 1
  • 5
  • 19