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

Garbage output on raspberry pi3 B/B+ when running and OCI container

I am running simple docker busybox container (converted to an OCI bundle) using docker-runC (https://github.com/opencontainers/runtime-spec) on a raspberry pi3, connected to a host via a UART terminal. The connection is done through pins 6-8-10 on…
2
votes
2 answers

STM32: Unable to exit interrupt handler for UART interrupt

I'm implementing a simple UART receive-transmit protocol on STM32F103, the library/boilerplate code I'm using here is LL, not HAL (as HAL includes insane amounts of overhead) My problem is that after successfully entering the interrupt handler…
Elmore
  • 256
  • 3
  • 7
2
votes
0 answers

why atmega32 recieves just the last 16 characters of string?

i use an atmega32 to communicate with SIM808. when module sends a string that contains more than 16 characters, atmega32 receives only the last 16 characters. it works fine with less characters. i use a 16*2 alphanumeric LCD to show the received…
Hassan V
  • 21
  • 3
2
votes
0 answers

using UART in VHDL

I'm trying to use UART communication with a Lattice machox3 and a ft232R. I am trying to use the VHDL file I found on eewiki(Here). For some reason I am not being able to get tx to work when I simulate it. what am I doing wrong? Is there a simple…
user169808
  • 503
  • 1
  • 6
  • 27
2
votes
4 answers

STM32F4 USART1 doesn't work correctly and return garbage data

I am trying to work with STM32F407 USART1 peripheral but it doesn't work correctly. I have read the datasheet for many times but i couldn't find any solution. I use FTDI232 for the communication. My connections are correct, i use this connection on…
2
votes
3 answers

multiple string transmit over USART using CubeMx

I was trying USART using a STM32F407VGT6 and CubeMX. I am able to send and receive data using Interrupts. But I am getting a problem which I am not able to understand: I am using HAL_UART_Transmit_IT to send the data. I have enabled…
Ehsan Habib
  • 135
  • 1
  • 5
  • 12
2
votes
0 answers

Disable stdout output in UART

When PetaLinux is loaded, messages are sent to the screen and duplicated in the UART(dev/ttyPS0), which I need to use for data exchange. How to disable stdout output in UART?
2
votes
1 answer

AT commands in a for loop

I am trying to execute AT commands from a Nordic NRF52. I am using the Nordic UART module with a built-in function called app_uart_put(uint8_t byte) to put AT commands on the UART. The node that receiving the AT commands is a EE-NBIoT module and it…
2
votes
2 answers

**STM32f427 UART with DMA** The highest bit sometimes is 1 when receive data from console

I got a problem when using STM32f427 UART with DMA(using stm cube HAL library). I would like make a console echo function, so I reply received data immediately in uart idle interrupt handler function. But sometimes, the highest bit of received data…
2
votes
0 answers

iOS Swift BLE UART where didUpdateValueFor is only called twice and quits

I have an embedded CPU sending strings through BLE UART to a iPhone. I can connect to the device, setup the UART characteristics, but it only reads two characters and didUpdateValueFor is called no more. I have to be setting something up wrong.…
pholowko
  • 21
  • 2
2
votes
3 answers

C# display a variable in a Textbox

i am sending Sensor information with a NUCLEOF411RE to my PC. I receive this data on the COM98 with a BaudRate of 115200. Now i want to program a Windows Application that will split my string and put it on my textboxes. until now i display the data…
2
votes
1 answer

Linux C++ reading UART device not working consistently

I am using a BeagleBone Black to read data coming from a microcontroller(s) via a UART port(s). I need the reading of the UART port to be a blocking call. Additionally, for the usage of this software there will be some non-standard baud rates in use…
user5880324
2
votes
2 answers

STM32 - RS485 request-response

I am trying to send request to measuring device and receive it's response using UART with interrupts. However communication is unstable, I am receiving incomplete or corrupted responses. I am not sure but I think it's because switching driver enable…
V.CHR.
  • 31
  • 1
  • 6
2
votes
0 answers

Uart on Atmel Studio SAML21 Xplained with example project?

I want to send a variable given by the function at30tse_read_temperature, on the example project of Atmel Studio called "AT30TSE75X_TEMP_SENSO". I added the usart with some help and ASF wizard, and it's working when I call it with…
user9626210
2
votes
1 answer

PIC18f46k42 UART not receiving

The TL;DR first: UART1 receiver isn't receiving; please tell me what I'm doing wrong. More detailed version: I'm currently working on a project that uses UART to send status reports between two PIC18f46k42 chips. Previous tests on a prototype board…
Chris
  • 31
  • 4