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:

1817 questions
8
votes
1 answer

What does BREAK mean in real terms while using a UART?

The break and error indication glows up in real terms while communicating with RS-232. Sometimes, the CTS is also will be glowing. Due to this, the data in prints as junk for some time; later it gets corrected after a few reset of real term. This…
MVA
  • 93
  • 1
  • 1
  • 7
8
votes
1 answer

What type of framing to use in serial communication

In a serial communication link, what is the prefered message framing/sync method? framing with SOF and escaping sequences, like in HDLC? relying on using a header with length info and CRC? It's an embedded system using DMA transfers of data from…
user2479653
  • 509
  • 5
  • 14
8
votes
1 answer

How do the CLOCAL and CRTSCTS Flags in termios.c_cflag Affect the Serial Port?

I want to configure a UART to use the Hardware Flow Control lines RTS and CTS in Linux. According to http://linux.die.net/man/3/termios, CRTSCTS enables RTS/CTS (hardware) flow control, and CLOCAL configures the serial port to ignore modem control…
Samuel
  • 8,063
  • 8
  • 45
  • 41
8
votes
2 answers

Emulating UART over USB

Does anybody know if it's possible to emulate UART (simple serial transmit and receive) over USB? How would this be accomplished? I found this link on the Microchip website, but it's not very…
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
7
votes
0 answers

Sparkfun edge message "!!!Wired Upgrade Unsuccessful!!!....Terminating the script"

I am flashing a Sparkfun edge board with the SparkFun Serial Basic Breakout - CH340G using some of the examples that the IDE provides in the oficial tutorial. Although, it has properly worked many times, mainly for the examples example1_edge_test…
Bub Espinja
  • 4,029
  • 2
  • 29
  • 46
7
votes
1 answer

python script crashes after long time running

I have a python 2.7 script running on a Raspberry Pi 3. class UIThread(threading.Thread): def __init__(self, threadID, name, counter, U): threading.Thread.__init__(self) self.threadID = threadID self.name = name self.counter…
flyblade
  • 169
  • 1
  • 7
7
votes
3 answers

How to Read Data from Serial Port in R

I'm wanting to plot live data from the serial port. I figured R would be a good tool for the job. I'm stumbling on trying to read data from the serial port (COM4). I've verified the data is coming in through terra term (and close the session…
Ryan B
  • 527
  • 1
  • 6
  • 17
7
votes
1 answer

Intel Galileo bare metal UART

I want to program a little "hello world" bare metal application on the Intel Galileo board. Using UEFI to print out text (to UART-1) works well, of course, but I want to access the UART "manually", without any help from UEFI. In QEMU my code works…
Kijewski
  • 25,517
  • 12
  • 101
  • 143
6
votes
2 answers

Correct way of implementing a uart receive buffer in a small ARM microcontroller?

I am looking for ideas for a receive buffer for a small application dealing with 15 byte packets at 921.6Kbaud over rs485. I am thinking of using a circular buffer as the interface between the UART ISR and main. As it is a microprocessor I was…
Meter Code
  • 61
  • 1
  • 1
  • 3
6
votes
1 answer

Can't get STM32F103RB usart1 to communicate with hc-05

I am unable to connect USART_1 with bluetooth hc-05. The Microcontroller is STM32F103RB. Here's the code (I am not using any library) #define APB2_FREQ 72000000 void USART1_Send(char* data) { unsigned int length = 0; while(data[length]…
Muzahir Hussain
  • 1,009
  • 2
  • 16
  • 35
6
votes
2 answers

PIC16F1829 UART RX Interrupt not working using MPLABX and XC8 compiler

I am new to writing firmware for 8-bit PICs and could use some help with my code. I am using a PIC16F1829 for an LED module which gets RX commands. I am just trying to get the basics setup like turn on LEDs when a certain value is received on RX…
humanistscience
  • 119
  • 1
  • 8
6
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
  • 81
  • 1
  • 1
  • 5
6
votes
1 answer

Uart 16c950 linux speed above B4000000 (4Mbps)

everybody, i'm working with a high speed RS422 pci board (OXPCIe958) under Ubuntu. The device can work up to 15Mbps. I need to work at 10Mbps, but i notice that under Linux, if we use termois, the maximum speed that can be specified is B4000000 (4…
fdaniii
  • 95
  • 5
6
votes
2 answers

UART ISR Tx Rx Architecture

Am I complicating things? I'm architecting my code to talk from a 8051 micro to a peripheral device over UART. The peripheral responds to commands from the host and can only respond to one command at a time. It's a simple send and receive…
Jonathan
  • 1,498
  • 2
  • 20
  • 41
5
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,761
  • 2
  • 22
  • 46