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

Unexpected Serial communication using timer interrupt in with ARM 32 bit

My code is for serial communication and led blinking using timer interrupt, where led is toggle at a fix interval of time with some line prints on serial terminal and for fix time i have used timer. Scenario: I am sending data "while" on the serial…
Naren
  • 159
  • 1
  • 7
2
votes
1 answer

Unknown bytes read during serial communications

I am writing code to communicate with an stm32 device (stm32l412kb) using the serial port and the MCU's UART. The aim of the code is that the MCU will send an instruction/request byte to the host computer. The host computer will act on this…
arry_h
  • 167
  • 1
  • 3
  • 12
2
votes
0 answers

Control USART RTS pin from driver on embedded board

I'm porting the lirc_serial kernel module to work on our embedded board. We only need to implement the IR transmitter function. For only the transmitter, the custom driver need only control the RTS pin on /dev/ttyS0, from within the module. On…
Danny
  • 2,482
  • 3
  • 34
  • 48
2
votes
1 answer

Data Not Being Stored in Receive Data Register, (UART RXNE Flag not setting)

I have been programming the stm32l412kb nucleo board, attempting to achieve basic UART communication. Transmission from the board works great but the board is not appearing to receive any data. For the software side, I have tried using standard HAL…
arry_h
  • 167
  • 1
  • 3
  • 12
2
votes
1 answer

Received message differs from sent message over serial connection

I am trying to connect two raspberries over a serial connection with pyserial. I wrote two little scripts, for transmitting and receiving. While there is a communication happening between those two, the received message is completely different, than…
samox
  • 134
  • 8
2
votes
2 answers

How to use RFID module MFRC522-UART serial on python 3? (encoding/decoding issue)

I am trying to use a modified MFRC522 module on UART, but I am stuck finding the correct formatting for serial read/write in python 3. There is a library for python 2 which works for me: The readme on that link also describes the modification to the…
collins
  • 33
  • 5
2
votes
1 answer

How receive data with HAL_UART?

I'm learning about the STM32. I'm want receive data by UART byte-to-byte with interruption. HAL_UART_Receive_IT(&huart1, buffer, length) Where &huart1 is my uart gate, buffer is the input storage and length is the amount of input bytes. I use the…
Elias Elnatã
  • 31
  • 1
  • 3
  • 6
2
votes
2 answers

C CORTEX-M4: How to access uint8_t data sent by UART (vcom) as int32_t

I'm trying to test a communication between my LPC4370 cortex-m4 micro (LPC Link2 eval board) and my computer, using the VCOM exaple provided with LPCOpen. I simply want to sent data from matlab, copy them in a int32_t array and send them back to…
a_bet
  • 370
  • 3
  • 14
2
votes
2 answers

Back-to-back UART transmission with PIC16F18326 - Skipped bytes

I'm using a PIC16F18326 to transmit some data over UART (asynchronous, 250k baud rate). The MCU runs at 32MHz, with an actual instruction frequency of 8MHz. I'm using the following assembly code to send 4 bytes (from 0xAA to 0xAD - don't mind the…
HBv6
  • 3,487
  • 4
  • 30
  • 43
2
votes
0 answers

STM32 only works properly the first time and then drops bytes

I am having a strange problem. I have a board with 2 UART interfaces (STM32F217) and I am using DMA to receive the data on both UARTs (USART1 and USART2). USART2 works perfectly. I can send and receive data through it no problem, but I am having a…
morcillo
  • 1,091
  • 5
  • 19
  • 51
2
votes
2 answers

Writing to non-volatile memory without disrupting UART interrupts execution on STM32F4XX

I have several OVERRUN errors on UART peripheral because I keep receiving UART data while my code is stall because I'm executing a write operation on flash. I'm using interrupts for UART and has it is explained on Application Note AN3969 : EEPROM…
2
votes
0 answers

How to design a test case to validate throttling capacity of a packet decoder?

I am implementing a packet decoder on a micro-controller. The packets are of 32-bytes each, received through a UART, every 10 milliseconds. The UART ISR (Interrupt Service Routine) keeps the received bytes in a ring buffer, and a thread scheduled…
SRK
  • 308
  • 3
  • 16
2
votes
1 answer

How to detect screen resize events coming from ncurses in QNX?

I can not configure to receive events about changing the size of the terminal using ncurses QNX Momentics. I am using Putyy as a terminal and data is transmitted through the COM port. My question is how to realize the reception of screen change…
J. Konor
  • 33
  • 5
2
votes
2 answers

which driver controlling x86 serial port ttyS0 in linux

by checking the serial folder @: \drivers\tty\serial There are many different serial port drivers there, which one is for x86?
Mark
  • 325
  • 1
  • 16
2
votes
1 answer

Android app, receiving data over BLE Module sent by Microcontroller via UART

I want to create android app, which can connect with bluetooth low energy module and can receive data. In my system microcontroller stm32f1 send data of measurements over UART to the BT LE module. My question is how to start? I read a lot about GATT…