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

Unable to Break Out of if Statement After Button Depression - Microchip

I'm unable to break out of an if statement after a button has been depressed. The button activates a relay and the depression turns the relay off. Here is my full code: I'm new to C so all comments and suggestions are much appreciated. #include…
Finners
  • 37
  • 4
-1
votes
1 answer

return serial Comunication with async void

I have an async event handler in my code to receive and send strings via serial UART. In the example here, I do only receive. Is there a way to use the string rxBuffer outside of Serial() ? I have to use the value on a different page. I read that…
TonicLoyal
  • 73
  • 6
-1
votes
2 answers

AVR UART reads a single byte twice

I am currently writing a UART receive code that reads and parses commands from another machine using AVR ATtiny87. The idea is to detect the start character and store it in the buffer, and keep storing the UART byte until 0x0a (FL) is received. I…
HumbleBumble
  • 45
  • 1
  • 7
-1
votes
1 answer

STM UART over USB

I have some device connected via USB to Raspberry Pi 3 with Raspbian installed. I have protocol specification, it is simple serial protocol with hex commands and data. However I have no idea, where to find drivers... In lsusb I see: Bus 001 Device…
Olga Pshenichnikova
  • 1,151
  • 2
  • 14
  • 31
-1
votes
1 answer

How can I receive multiple messages on UART?

I have an RDM6300 RFID writer/reader. It can read RFID Tags and it sends the data via UART to a microcontroller. So far I worked with multiple Microcontrollers from which ones the STM32F04 had the most UART "ports" (8 transmitters and receivers).…
szilard1996
  • 47
  • 1
  • 6
-1
votes
1 answer

What happened my ttyS0 has no irq list in /proc/interrupt

In this system, it blocks(hang) in the following cases: echo "test" > /dev/ttyS0 cat /dev/ttyS0 #read nothing even scope show the UART data there stty -F /dev/ttyS0 115200 If I set serial console in grub, the Linux (CentOS7, Ubuntu18,…
Mark
  • 313
  • 1
  • 10
-1
votes
1 answer

How to connect Raspberry Pi 3 and FPGA cylone IV E Altera for Uart communication

I'm trying to connect Raspberry Pi 3 and FPGA for UART communication. I connected directly two pins of my FPGA to the rx and tx pins of my Raspberry Pi 3. However, the data received by Raspberry Pi is not the data sent by FPGA. In simulation…
Alpha0
  • 25
  • 4
-1
votes
2 answers

Converting valuestring or valueint from cJSON to send using uart_write_bytes is failing

So, currently, I am sending a JSON message containing a value I need to send from an ESP32 UART uart_write_bytes, but am not sure where I am going wrong in the conversion. Currently, if I send 234, it goes out the UART as 50, 51, 52, and not…
wegunterjr
  • 121
  • 1
  • 8
-1
votes
2 answers

HAL_UART_Transmit sends wrong data

When ch = 0x80, on PC I receive 0x00, When ch = 0x40, on PC I receive 0x80, When ch = 0x20, on PC I receive 0x60, When ch = 0x10, on PC I receive 0x10, When ch = 0x08, on PC I receive 0x08, When ch = 0x04, on PC I receive 0x04, When ch = 0x02, on PC…
velizarw
  • 7
  • 4
-1
votes
1 answer

Interface from DE1 board to PC in VHDL

I am designing a simple IC tester using the DE1 altera board, and I really want to implement a simple user interface which a user can use to input variables into the VHDL program (e.g a small C++ app/form/yougetmypoint) so my basic idea is: 1) start…
D.P
  • 19
  • 3
-1
votes
2 answers

How do these uart structs as function parameters work?

I have this code I'm trying to understand but I'm stuck, so maybe one of you good people could point me in the right direction. Taking it step by step I have this part of an initialisation... volatile struct UART *pTXD1; volatile struct UARTINIT…
Kater
  • 63
  • 9
-1
votes
3 answers

Send a structure using UART

I have a two boards: - Master board (M board) - Slave board (S board) M board shall send a request to S board and the latter shall answer. The answer of the slave is a struct: typedef struct{ uint8_t userID; uint8_t userPass; uint16_t…
Pryda
  • 661
  • 1
  • 10
  • 26
-1
votes
1 answer

Micro:Bit read bluetooth message

I want to send messages from my Micro:Bit to a linked device over bluetooth. I have the following code for Micro:Bit: #include "MicroBit.h" #include "MicroBitUARTService.h" MicroBitUARTService *uart; MicroBit uBit; uint8_t connected = 0; void…
Lechucico
  • 1,404
  • 4
  • 19
  • 43
-1
votes
1 answer

how to communicate between openmote and arduino?

I'am working on an IOT project. The goal is to communicate between two openmotes (one is the server and one is the client). When the client receives some data, it is supposed to pass it to an arduino to activate different controllers (like a motor,…
voguendi
  • 3
  • 4
-1
votes
1 answer

Bug related to UART FIFO under multi-tasks

Program attached: Those codes are written by me based on the TI uart.c driver library. while(1){ //check if message on Queue -> read or check UART input if(uxQueueMessagesWaiting( UART_TASKQ ) != 0){ //may have bugs …
1 2 3
99
100