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

0
votes
0answers
23 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
28 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
17 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
18 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
28 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
39 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
18 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
257 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
177 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
59 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
12 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
94 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
60 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
59 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
44 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
82 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
230 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
35 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 ...
1
vote
0answers
126 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
29 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
121 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
649 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
241 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 ...
0
votes
1answer
100 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
161 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
40 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
291 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
53 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
200 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
628 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
311 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 ...
0
votes
0answers
602 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
190 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
53 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, ...
0
votes
0answers
224 views

Linx GPS UART communication using wiringPi

I have a Linx RXM-GPS-R4-x GPS module that uses the UART pins on the Raspberry Pi 3 model B's GPIO pinout. I'm also using the wiringPi's serial library. However, I'm having difficulty with ...
0
votes
0answers
36 views

can't execute uart communication

I'd like to execute uart communication but I didn't succeed it. I use raspberrypi2 and the OS is ubuntu14.04. I show the procedure that I executed. [1]I directly connected GPIO14 (Tx (pin 8)) to ...
0
votes
1answer
24 views

Modifying what is shown in the uART

I am working on establishing user communication (one may say a basic UI) from the user's PC to my Raspberry Pi, where the RPI would accept pre-defined commands from the user via uART and then process ...
3
votes
1answer
828 views

Can I use the TX/RX pins and the USB ports for multiple serial devices?

I have two devices I want to use (GPS module and a PM2.5 sensor) that both use serial communication. I know you can't throw two devices on the same serial line. However, I've seen some badly explained ...
0
votes
0answers
48 views

Program inexplicably terminates upon calling open()

I have code that is attempting to open /dev/mem for mapping a peripheral register for manual usage. Specifically, I am attempting to access the UART registers directly. I have a function called ...
0
votes
1answer
52 views

How can I run pigpiod and gpsd on the same machine?

I've now got an Ultimate GPS board attached to the UART, and use both the GPIO pins, and the SPI interface by addressing the pigpio library. The pigpiod docs tell me that pigpiod would control the ...
0
votes
1answer
232 views

Direct connect router UART 3.3v to pi3B UART 3.3v and use debug console

Can I use a Raspberry PI model B to interact directly to a router debug console (undocumented) via "screen". TX <-> RX RX <-> TX GND <-> GND # screen -L /dev/ttyAMA0 115200,-...
0
votes
1answer
529 views

Compute Module 3, Can't Remove Boot Error Showing on Embedded Display

Edit: Unnecessary snark aside, I found that there was a commit referencing this exact issue in the kernel two days ago. As of now I'm compiling from source, and while I had it available, I also ...
1
vote
3answers
839 views

UART problem: Sending more than 8 bits

How can I send something more than 8 bits over UART? Any python libraries?
0
votes
1answer
73 views

Sending a bytearray of certain length to a PC over UART

I was wondering how I could send a byte array of 16 or more bytes from the pi to a computer, where the computer would receive it via USB. Could UART send a byte array of this length? If yes, how can ...
0
votes
0answers
502 views

UART connection between STM32 an Raspberry Pi

i'm trying to establish an UART connection between STM32F4 and Raspberry Pi 3 to send motion sensor data. STM32 C code: /* Includes --------------------------------------------------------------...
3
votes
1answer
644 views

Raspberry Pi how to get data from serial port in GNU screen

I have sample app that wait on signal from IR sensor that is connected to GPIO15 and 14: ser = serial.Serial(port="/dev/ttyAMA0",baudrate=115200, timeout=1) io.add_event_detect(15,io.RISING, callback=...
1
vote
0answers
849 views

Very slow serial port reading

I have the following code, used on an RPi2: import serial import time # Set up serial port ser = serial.Serial( port='/dev/ttyAMA0', baudrate=921600, parity=serial.PARITY_NONE, ...
0
votes
1answer
702 views

Data transfer of UART over USB too slow

TL;DR : The PI was not the issue. The sender was. Take a look into my answer. long story I am facing a performance issue right now on a test setup i use to investigate limitations for my upcoming ...