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
3 answers

How can I connecti Raspberry pi 4 to pixhawk?

I want to create a connection between pixhawk and raspberry pi 4 model B. When I connect the Pixhawk to the usb port of raspberry via micro-usb, I can send commands to the pixhawk with the drone-kit scripts on raspberry. However, when I connect…
codcod4
  • 61
  • 1
  • 8
2
votes
1 answer

STM32 Timer Counter problem during sending data via UART

I have some problem with the handling of the timer in code (STM32F303RE). My goal is to send messages to UART port every 200ms (one packet) and every 1s (second packet). I implemented timer (MX_TIM6_Init) which increments 2 variables (timer100ms…
Daniel
  • 51
  • 2
  • 10
2
votes
1 answer

How can I use Ansible of a serial connection instead of SSH?

I have a bunch of Raspberry Pi devices that I only configure over the serial console. I am hoping to configure Ansible to update them for me. I can't find any obvious way to do it (on this list for example: Plugins) Do I need to write my own…
Alex028502
  • 3,486
  • 2
  • 23
  • 50
2
votes
1 answer

Cannot read from UART port, Beaglebone Black

I am trying to read data from UART1 of Beaglebone Black. I have connected TX of UART1 to RX of UART1 I am getting unknown characters printed on the screen. I was giving input characters from Minicom ttyO1 terminal My code is…
Ramana
  • 49
  • 4
2
votes
1 answer

ESP32 UART Interrupt

I am trying to run UART1 interrupt on ESP32 WROVER but in process of compilation I get: ../main/scan.c: In function 'uart_intr_handle': ../main/scan.c:195:12: error: 'UART1' undeclared (first use in this function) status = UART1.int_st.val; //…
user505160
  • 1,176
  • 8
  • 25
  • 44
2
votes
2 answers

Recieving extra byte in UART comms

I have been involved in a project where I need to extract some data from a device and display it on a PC to be checked. The device I am recieving data from sends a string which includes the device ID, current mode, temperature reading and battery…
MCG
  • 155
  • 1
  • 9
2
votes
0 answers

Save image from byte array returned by Raspberry Pi UART Camera

I am currently struggling with getting a picture from a camera connected to the uart circuit of the raspberry pi. I am trying to do so with the aid of pi4j. Since I was able to initialize the camera, I do not think that the problem is related to the…
2
votes
2 answers

Qemu - Redirect host input to guest UART for bare metal kernel

I'm writing a kernel from scratch in Rust for 64-bit ARM devices. For testing purpose, I use Qemu virt machine. Currently, I'm able to write characters from guest to host console through UART. Now I would like to do the opposite, i.e. send…
ney
  • 23
  • 6
2
votes
1 answer

STM32 Keil - Can not access target while debugging (AT Command UART)

I am trying to communicate with GSM module via UART communication. I could get message from the module as I expected. However when it comes to while loop (it is empty), debug session ends with "can not access target" error. Stepo by step, I am going…
2
votes
1 answer

PIC32 UART: U1RXREG Register Never Contains Any Values Other Than 0

I've attached an image showing my oscilloscope readout which is from the code below. Context: I have a Pi and a PIC which need to communicate through UART connection. I've implemented my own flow control which can be seen in the image attached [RTS…
james
  • 21
  • 2
2
votes
1 answer

Serial Issues with Neopixel

I was looking for some help with; understanding DMA, Serial, managing interrupts and blocking code. I have an ESP32 DEVKITC v4 that I'm using to handle user Input both from hardware such as rotary encoders and from wifi. The ESP32 is also…
Connor N
  • 21
  • 1
2
votes
1 answer

Linux using a driver from inside a driver

I am trying to interface to a microcontroller from my linux box via RS232 serial. I have written the driver and implemented a protocol b/n pc and microcontroller, which uses a tty(/dev/ttyS0) device already present in the kernel as a module(eg via…
user623879
  • 4,066
  • 9
  • 38
  • 53
2
votes
1 answer

BeagleBone Black UART software FIFO size?

I'm developing a custom application on the BeagleBone Black that has to use the UART capabilities of the device via the Debian Linux that runs on the BBB, for reading big chunks of data. For reading from the UART I'm opening one of the /dev/ttyO0,…
Greenberet
  • 490
  • 1
  • 5
  • 18
2
votes
1 answer

PeripherialManager.getInstance() throws java.lang.RuntimeException: Stub

I am trying to use com.google.android.things:androidthings for UART communication. The problem I get is that PeripheralManager.getInstance() throws java.lang.RuntimeException: Stub!. I am using a device Rockchip RK3368 with Android SDK 25. I was…
Miha Bogataj
  • 298
  • 2
  • 19
2
votes
1 answer

FreeBSD 11 Beaglebone Enable UART1 and UART4

Cannot get the UART 1 or UART4 working on freeBSD Beaglebone FreeBSD beaglebone 11.3-RELEASE FreeBSD I did following changes to am335x-boneblack.dts. Here is a diff file. freebsd@beaglebone:~/dtb % diff ./am335x-boneblack-original.dts…
user2195463
  • 321
  • 5
  • 8