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
0
votes
1 answer

UART Receiving keyboard input doesn't work

I am having trouble with reading data sent from my laptop to the microcontroller via UART. The transmitting part works fine - I can send data to my laptop without problems, but echoing data, or reading keyboard input data from the laptop doesn't…
0
votes
1 answer

Raspberry Pi and Arduino Mega 2560 UART behaviour difference

I've been trying to establish serial (UART) communication between a Raspberry Pi Model B Revision 2.0 (checked the model like described on this page) and Arduino Mega 2560. I made a service on the Pi that writes to UART and then expects a message…
NMilev
  • 77
  • 2
  • 11
0
votes
1 answer

MSP430 UART unwanted loopback with Raspberry Pi

So I'm having a problem getting a TI microcontroller to communicate with the Raspberry Pi B+. The exact microcontroller I'm using is the TI cc430f5137. The issue I'm having is that I just can't seem to get the Raspberry Pi to correctly receive the…
dburnsii
  • 5
  • 3
0
votes
1 answer

Bluetooth Module AVRCP and UART

I wonder before buying Bluetooth modules can stream audio and transmit data at the same time ? I vill use AVRCP profile or A2DP profile for streaming audio. While using this stream modes can modules send or recieve serial data from smartphone or…
0
votes
1 answer

Data Abort on A20 SoC

I'm trying to write a small application which shows a message through Serial Port. This binary is being executed without OS, so it's bare metal. The code is as follows: #include #define FIFO 0x0 #define NOFIFO 0x1 #define FIFO_STATUS…
leberus
  • 51
  • 1
  • 6
0
votes
0 answers

How to determine BananaPi M3 UART specifications

I have a BananaPi M3 device and I am trying to read from UART port some data coming with 4Mb baudrate. I have a harware connected to the UART that generated data with 4Mb baudrate. I made a short script in Python to read the data, but if I set up…
Lucian
  • 874
  • 11
  • 33
0
votes
2 answers

Connecting two serial ports in C

I want to connect/bridge two serial ports in C. I have 2 threads reading the ports, and writing to the other port. Here is one example: void *rfid_to_uart_thread(void *) { char rfid_read_buffer[100]; int writeCounter; do { writeCounter =…
Tobi
  • 168
  • 1
  • 12
0
votes
1 answer

Serial communications between PySerial and VEX EDR Cortex

I have been struggling with this for the last 24 hours, I am trying to get PySerial to talk to a VEX Cortex over bluetooth using UART / HC-05. I guess this would be very similar to communicating with a Arduino. The devices are connected together…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
0 answers

Linux C++ Serial Programming Not Working Why?

#include #include #include #include #include #include #include #include #include #include #include…
0
votes
1 answer

Linux Serial Port: missing data on input

#include #include #include #include #include #include #include #include #include #include
0
votes
0 answers

Reading data from Raspberry PI's uart

I am testing to read data from Raspberry PI's uart. I have USB to UART adaptor and connect between PI's USB port and PI's UART (g, Rx,Tx). Then the code for the USB port run. The code sends data to uart at every 100msec. #!/usr/bin/env…
batuman
  • 7,066
  • 26
  • 107
  • 229
0
votes
2 answers

serial monitoring method to test communication via com ports without a serial communication device

I have a Verilog code simulated and synthesized on ISE design toolkit. I've got an FPGA spartan 6 device which is to be used for the implementation. But there is a problem with the device (probably a power issue) which makes the device unavailable…
wr93_
  • 130
  • 1
  • 1
  • 13
0
votes
1 answer

How do I check the Received Length of serial data packet is correct or not?

I want to send data through serial ,my format is Start_flag,Length,data,CheckSum so its 0xAA,0x05,M,T,O,N,0x78 On the receiver after it gets start flag then it receive 5(len) data. I want to confirm whether the Length received is correct or not?…
Siva
  • 11
  • 1
0
votes
0 answers

Detect UART port names on BananaPi M3

I'm trying to detect the UART port names for a BananaPi M3 device running a Raspbian so I can do a simple test to send and receive some data on it. I connected the RX and TX pins of the UART connector with a simple jumper but I cannot detect the…
Lucian
  • 874
  • 11
  • 33
0
votes
1 answer

Understanding a struct in c - a uart config

I'm looking at the config for a UART on an mcu. There is a structure describing the status of the UART below. At the beginning of main() there is this line of code uart_status_t uart_status __attribute__((unused)) = 0; Could somebody explain what…