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
198
votes
6 answers

Cross-thread operation not valid: Control 'textBox1' accessed from a thread other than the thread it was created on

I want to send temperature value from a microcontroller using UART to C# interface and Display temperature on Label.Content. Here is my microcontroller code: while(1) { key_scan(); // get value of temp if (Usart_Data_Ready()) { …
Fatima Zohra
  • 2,629
  • 2
  • 15
  • 16
76
votes
13 answers

What is the difference between baud rate and bit rate?

I am really having hard time understanding the difference. Some say they are same, while others say there is a slight difference. What's the difference, exactly? I would like it if you explained with some analogy.
dimSutar
  • 1,269
  • 2
  • 12
  • 17
27
votes
3 answers

UART vs I2C vs SPI for inter-processor communication between microcontrollers

I am examining a way to connect two microcontrollers. On the level of serialization I am thinking of using Nano protobuffers (http://code.google.com/p/nanopb/). This way I can encode/decode messages and send them between two processors. Basically,…
Drasko DRASKOVIC
  • 335
  • 1
  • 3
  • 8
14
votes
2 answers

Device node at /dev/tty* not getting created for uart serial driver

I have written a simple UART serial driver in embedded Linux running busybox with mdev rules. I have provided .dev_name as "ttyC2C" in my driver code. static struct uart_driver serial_omap_reg = { .owner = THIS_MODULE, .driver_name =…
manav m-n
  • 10,236
  • 21
  • 66
  • 95
12
votes
4 answers

is it possible write to console without stdlibs? c/c++

I am programming on an arm microprocessor and am trying to debug using print statements via UART. I do not want to add stdlibs just for debugging. Is there a way to print to the console without stdio.h/iostream.h ? Is it possible for me to write my…
Sam
  • 238
  • 3
  • 14
10
votes
1 answer

ARM: reading modbus data through UART fails

I am trying to read a register from an RS485 adapter using a UART connection on an ARM board with no success Machines ARM board: CM-T335 - TI AM335x Computer-on-Module http://www.compulab.co.il/products/computer-on-modules/cm-t335/ PC: x86 machine…
Taher
  • 10,838
  • 2
  • 27
  • 41
10
votes
3 answers

Why is my buffer length ignored?

I'm developing a receiver for a small hardware project. I'm working on a small board that uses UART to transfer data. The receiver code is shown in full below, I'll explain the problematic bits separately shortly. #define TTY…
Etheryte
  • 20,940
  • 10
  • 58
  • 98
9
votes
1 answer

GATT profile and UART service

I am new to developing a mobile app with bluetooth connection to peripheral device. I searched that GATT is the relevant profile used for bluetoothLE communication but our client recommended that we use UART service. Now I am confused as to 1. how…
Samra
  • 1,218
  • 2
  • 21
  • 48
8
votes
1 answer

iPad accessory communication through UART

We manufacture a new accessory for iPad/iPhone which should transfer commands to the iPad. We like to use UART (through a certain Apple-protocol called Lingo). My research shows that I can only use USB (30PIN Connector) and custom…
Sebastian Roth
  • 10,454
  • 13
  • 56
  • 103
8
votes
4 answers

Raspberry Pi UART serial wont work

I am trying to send/receive data over serial connection (GPIO UART pins) between a Raspberry Pi (B model, raspian wheezy) and an STM32F4 board. To setup the serial port, i followed all the stepts found in several tutorials like:…
Martin Law
  • 334
  • 1
  • 2
  • 11
8
votes
0 answers

Configure minicom to use hardware flow control

Looking for some assistance testing a UART implementation with hardware flow contorl for the OMAP L138. To test the implementation I use minicom to emulate the other end of the serial link and I'm looking for some insight into how it needs to be…
dinesh
  • 705
  • 2
  • 8
  • 20
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
  • 2,458
  • 1
  • 21
  • 36
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
  • 159
  • 1
  • 5
7
votes
2 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
  • 457
  • 1
  • 4
  • 15
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…
kay
  • 23,543
  • 10
  • 89
  • 128
1
2 3
99 100