Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [uart]

a Universal Asynchronous Receiver/Transmitter, better known as serial port

1
vote
1answer
16 views

PIGPIO bit banging UART - SLR to plaintext

I've managed to read UART input by SLRO and SLR commands from pgpiod, however, SLR returns UART bit-banged data in the following format: [number of read bytes] [bytes] http://abyz.me.uk/rpi/pigpio/...
1
vote
1answer
19 views

RPi Zero: Two UART devices at the same time

I need to read UART data from one device, and send different data to the other device, all via raspberry pi zero. It has only one UART TX and one UART RX on GPIO pins, but I heard that it is possible ...
1
vote
2answers
36 views

Error while using wiringSerial

I am new to the Raspberry subject and only figure out some basics. I want to use a Nextion-Display withe a Raspberry pi 3b+ and communicate over the UART pins. For this I found wiringPi and that it ...
2
votes
2answers
122 views

Serial to Arduino totally non-responsive

I'm trying to connect my Arduino to my Raspberry Pi using the GPIO pins. I understand that the Pi uses a 3.3V signal while the Arduino uses a 5V signal so I bought a bi-directional logic level ...
1
vote
0answers
30 views

Do Rpi3 UART devices inherit their device ID from the on-board UART0 controller (GPIO pins 8 & 10)?

I am working on a device prototype which reads load cell data to an Arduino which sends the load cell data via (hardware, not USB) Serial to the Rpi3 running Win10 IoT. The communication link ...
1
vote
2answers
119 views

5V-3.3V Sensors Confusion

Most of the sensors available in the market requires 3.3V-5V. The GPIO of the Raspberry Pi is 3.3V max only and not 5V tolerant. I have seen tutorials around the internet that they supply the sensors ...
0
votes
0answers
30 views

How to access Tx Rx of UART to TTL converter on RPi 3B?

I accessed the hardware by connecting it to GPIO pins (TX-RX) and wrote a code that that could send instructions to that hardware and receive outputs from it successfully. The first few lines of code ...
1
vote
0answers
14 views

UART 0 PCLK not registered (pi 3)

I'm using a rpi 3 and so to use the UART 0 I had to disconnect the bluetooth from it: enable_uart=1 dtoverlay=pi3-miniuart-bt dtoverlay=midi-uart0 in /boot/config.txt It works great but now at ...
0
votes
2answers
36 views

capture Image with picam then send to another pi via UART

I would like to send an image(JPEG) captured by a pi-zero (in a in-closed container) to an pi3 for storage and analysis. Currently I have UART via gpio set up, but so far I have only been able to send ...
0
votes
1answer
111 views

raspi-config is not working after installing Xenomai on Raspberry Pi 3

I followed the instructions given here to install Xenomai on a Raspberry Pi 3. After installing the kernel (now the RPi uses the kernel-xenomai.img during boot) I couldn't access my network, neither ...
0
votes
0answers
27 views

Change UART default pins

On of on my pi zero I think my RXD pin is out. When trying to connect through usb/serial I receive all the loading of the boot and the login console but cannot send anything (thus cannot login). I ...
1
vote
0answers
19 views

Toggle UART (enable_uart=1) without rebooting

Which pins can can I manually toggle to enable or disable UART on a Raspberry Pi Zero or 3B+ without rebooting? As I understand, /boot/config.txt is parsed before Linux is started, but I don't mind ...
0
votes
0answers
17 views

how to connect STM32F103C8T6 toboth of raspberry pi3 and GPS module via UART

I want to build a quadcopter based on STM32F103C8T6 microcontroller and two sensors(MPU-6050i, Baromter 5611) I will also add GPS NEO-M8N and Picamera, instead of radio controling i will use a wifi ...
0
votes
2answers
62 views

can I use SSH and GPIO UART simutaniously?

I am connected to my Raspberry PI 3 B+ running Raspbian through an SSH terminal, and I am trying to make an application that uses the UART through the GPIO. Whenever I try to open the port "/dev/...
0
votes
0answers
39 views

Serial communication between RPi and PIC uC uart receiver accuracy

I am currently working on serial communication between RPi and PIC. I am new to Raspberry Pi and python world.... okay following is my code: from serial import * from time import * import RPi.GPIO as ...
1
vote
0answers
39 views

Adafruit Ultimate GPS with Rpi 3 “Permission Denied”

I am trying to connect an Adafruit Ultimate GPS to my Raspberry Pi 3 and read data from it using the WiringPi Serial library. I have set the serial connection up and removed the serial console through ...
0
votes
0answers
27 views

How to connect maxbotix ultrasonic range sensor through GPIO

I got a Raspberry Pi 3 B+ over Christmas which came with a breadboard (i.e. I'm new to all of this). I recently bought a Maxbotix HRLV-EZ4 ultrasonic sensor. I am using the Canakit GPIO Breakout ...
-2
votes
1answer
22 views

Ser.write() ,when checked shows only the length

I have used a=ser.write("TEST".encode()) in my code to send data using UART gpio in Rpi. The code shows no error but when I print a,it gives me the length only. Actually i am trying to interface Rpi ...
-1
votes
1answer
87 views

Serial Port & C Code

I have a sensor connected to an ODROID UART (Basically an RPi just a different name for the UART port) and using the WiringPi Serial library. I am able to echo/cat to the sensor via two terminal ...
1
vote
2answers
65 views

software solution for non-blocking UART communications

For UART communication on Raspberry Pi one can write a program in Python with the pyserial package or a program in C. Pyserial requires Threading for non-blocking UART, while C libraries allow to use ...
0
votes
1answer
25 views

Raspberry PI UART doesn't work all the time

I am trying to communicate to a UART device using Raspberry Pi (Raspberry Pi 3B with Raspbian stretch) Header pins with pyserial. I have followed all the steps mentioned in https://www.raspberrypi.org/...
3
votes
2answers
323 views

Impact of using UART

I'm trying to understand the impact of using UART communication of the Raspberry's GPIO pins. So I'm reading the Raspberry UART documentation, but I'm not sure if I get everything right. It says: ...
0
votes
1answer
306 views

UART Raspberry pi IoT (Windows IoT Core)

UART data transmission Raspberry pi UART (RX TX) Arduino I know should avoid async void. They are only used for event handling. For other methods return Task. async and await Where can there be a ...
4
votes
1answer
69 views

Is Fingerprint Scanner - TTL (GT-511C3) compatible with Raspberry Pi Zero

I have a question regarding Fingerprint Scanner - TTL (GT-511C3). Here is a link. Please help me. Is this fingerprint scanner compatible with Raspberry Pi Zero? please give me the answer.
0
votes
0answers
19 views

SimpleBGC No response on CMD_READ_FILE command

I am trying to get a SBGC V3.O board (a gimbal controller) connected with my SimpleBGC32 GUI running on raspberry pi. I see the roll pitch and yaw meters updating fine but I am getting a popup window ...
0
votes
1answer
164 views

Problems connecting to pi 3 via ttl (cp2102)

I'm following raspberrypi.org THE RASPBERRY PI UARTS guide, trying to connect from mac 10.13.6 High Sierra to Pi 3 using screen. I had to disable system integrity protection on mac (high sierra) to ...
0
votes
1answer
92 views

pigpio library serial_wave confusion

I am trying to use joan's pigpio for python to try to write a command from a rpi3 GPIO pin to a peripheral device. the peripheral device uses UART and when it receives a data packet it will then ...
0
votes
1answer
86 views

Is SPI in Raspberry Pi Reliable..?

I'am trying to initiate a two way communication between Raspberry pi and Arduino. I worked with spidev library and directly using the SPDR register in the Arduino micro-controller without being able ...
0
votes
2answers
69 views

Restore UART pins 8 & 10 after GPIO.cleanup() without reboot

A Raspberry Pi 3B+ is talking to an STM32 chip via UART over pins 8 (TXD) & 10 (RXD). When I take control of those pins using GPIO.setup(8, GPIO.OUTPUT); GPIO.output(8, GPIO.LOW); and later ...
2
votes
1answer
113 views

How do you use both USB Serial Gadget and UART on Pi Zero?

Just like the title says, I want to use both the GPIO UART and the USB Gadget at the same time. Background: I've been working on modding up one of the Adafruit IoT printer projects, which uses the pi ...
1
vote
1answer
464 views

UART RX stops reading data after working correctly

I'm trying to read an continuous stream of data from my device (laser altimeter). The device is connected to the UART Rx pin of raspberry Pi 3B+. Everything works fine with this python code: import ...
1
vote
0answers
42 views

What is (typically) GPIO's UART RXD input impedance in a RPi 3 Model B?

I'm sorry if this is a trivial (or already answered) question, but I really couldn't find an answer on the web. I'm trying to connect an AVR board, which operates at 5V, to a Raspberry Pi 3 Model B's ...
2
votes
0answers
173 views

Bare Metal RPI 3B UART not working

I have referred many tutorials to get UART working in bare metal environment on RPI 3. https://github.com/dwelch67/raspberrypi/tree/master/uart05 https://github.com/mrvn/RaspberryPi-baremetal/tree/...
1
vote
0answers
32 views

USB Dongle not working if it's connected by default to my Raspberry Pi

I have a USB Dongle That I communicate with it using UART commands. So if I connect my dongle after starting the system I can send commands and I'm able to receive info, But if I leave the dongle ...
0
votes
1answer
228 views

Using Serial to Read Ultrasonic Sensor?

I have an HRLV-EZ4 ultrasonic sensor hooked up to my RPi 3 B+ like so: Serial output --> pi RX (pin 10) V+ --> pi 5V GND --> pi GND I've already gotten it to work with an analog voltage output and ...
0
votes
0answers
935 views

change baud rate of serial port raspberry pi 3 android

I installed lineage os 14 on raspberry pi 3 I connected a gps module with UART port, however, the baud rate of GPS is 9600 but baud rate of /dev/ttyS0 is 115200 I want to change the baud rate of ttyS0 ...
0
votes
3answers
307 views

Error on changing permissions in serial port

I have been trying to find a solution for 2 days but I wasn't able to find one. I want to change the permission of the /dev/ttyAMA0 but seems to be impossible. I tried with sudo chmod 777 /deb/ttyAMA0 ...
1
vote
1answer
148 views

No parity bit in Serial communication using PL011 uart

I have little experience on UART communication. I am using the PL011 UART instead of mini mart in a Raspberry Pi 3, therefore I should have parity bit. The thing is when I enable the parity bit in my ...
0
votes
1answer
207 views

Rubbish Values (b'\x00\x00\x00 … ') - UART of Arduino to RPi 3B

I am getting b'\x00\x00\x00 ... ' together with the data I want. For example, my Arduino is writing 'hello raspberry' to RPi. At the RPi, it receives 'b'\x00\x00\x00 ... hello raspberry\r\n '. Why? ...
0
votes
0answers
45 views

Can't read raspberry Tx

I'm trying to do a project with raspberry and a PIC. The PIC sends data via UART using Tx of PIC and Rx of the Raspberry. But when I try to read data in the raspberry there's no anything. I put a LED ...
2
votes
2answers
342 views

Using UART from USB C

So basically my Alienware R4 17" 2017 model has USB C ports. I think USB C ports are a standard and operate at 20 volts, 5 amps, and 100 watts for power and charging. I have a Pi 3 and Pie 3 Model B+....
0
votes
1answer
71 views

Question about Pi3 and UART finger printer

I have a Pi3 board and a UART Fingerprint that brand is Waveshare link is https://www.waveshare.com/wiki/UART_Fingerprint_Reader but When I receive it I have totally no idea how to use pi3 to read ...
1
vote
2answers
224 views

Disable UART such that it will not be on during the boot process, but only after

I am using UART sensors that do not allow the RPI to finish the boot when the serial console and the bluetooth are on. I did disable them using the dtoverlay=pi3-disable-bt in /boot/config.txt and ...
1
vote
2answers
774 views

Raspberry pi 3 reading serial port

I have a python code that reads the serial port of the raspberry pi 3to obtain GPS positions from a fona808. The code works for some time and then throws this error. Traceback (most recent call last):...
2
votes
1answer
407 views

Blank terminal in Pi0 UART connection

Following this tutorial exactly: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/overview i.e.: Drivers are installed UART line is added and enabled I get a blank ...
1
vote
0answers
778 views

Can't Login to Pi0 console from Pi3 B+ via UART Serial USB-TTY Adapter

I am new to RPi's so bear with me please: I am trying to log in to the Pi0 console via sudo screen /dev/ttyUSB0 115200 but I just get a blank screen. Ouput of dmesg | grep tty: [ 0.000000] ...
0
votes
1answer
239 views

Two UART Devices (One for USB and one for Bluetooth)

I need to make the Raspberry Pi communicate with the Arduino via USB Cable. From this, I will use the port on the USB which supports Serial Communication. However I also need to make the Raspberry Pi ...
2
votes
0answers
1k views

Raspberry Pi and LIN Bus

I want to implement a LIN Bus using a Raspberry Pi 3. The RPi will be the master controlling slaves on the LIN Bus. My idea is to use the Raspberry Pi UART, but I am not sure to what extent this ...
1
vote
1answer
59 views

Unexpected data over /dev/serial0

I'm using a Raspberry Pi B+ to connect to the Adafruit Mini Thermal Receipt Printer using a slightly modified version of their provided python library. I've been able to connect to the printer and ...
0
votes
0answers
1k views

How do I test if my UART port is working? Simple example… loopback-test

I am working on a NMEA(GPS)-datalogger for a drone. I followed the tutorial from fishandwhistle and createt this script: #!/usr/bin/python3 import os, time, sys, glob, datetime, syslog, pynmea2, ...