Stack Exchange Network

Stack Exchange network consists of 174 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
14 views

pymodbus error: [Input/Output] No response received from the remote unit/Unable to decode response

I've been having connection errors on my Raspberry Pi 3B using pymodbus. Designed a board using MAX14854G as the RS-485 transceiver that is connected to the RPI3's UART pins (8 & 10). Currently ...
0
votes
1answer
32 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
39 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
8 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
28 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
35 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
0answers
29 views

printing the data received through UART in Rpi

I need to send a character from raspberry pi to arduino via zigbee. Upon receiving the character arduino should send some numbers back to pi. Data send from the arduino is received till the zigbee ...
0
votes
1answer
35 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
28 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 ...
0
votes
0answers
21 views

How does PigPio serialRead handle framing errors?

I want to use a slightly modified version the "bit bang" pigpio serial read code so I can get timestamps for each character. The serial data stream to be read is likely to be error prone, since it ...
2
votes
1answer
43 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
45 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
29 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
73 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
27 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
68 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
463 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
173 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
74 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
112 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
38 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
205 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
40 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
179 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
439 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
194 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
435 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
165 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
829 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
49 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
824 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
191 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
34 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
686 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
46 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
45 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
145 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
468 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
774 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
53 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
471 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
481 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
725 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
571 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 ...
1
vote
2answers
1k views

Size of serial port read size in c

I have a Raspberry Pi 3 and I'm currently use read(2) system call to read data from serial port. At this moment, I'm reading byte by byte from port with; rc = read(uart_fd, &byte, 1); I'm ...
2
votes
0answers
1k views

Raspberry pi 3 uart not working

I've done almost any tutorail I found in the internet, but I cant get successful communication with uart in RPI3 Ubuntu Mate. I've added enable_uart=1 and dtoverlay=pi3-disable-bt and core_freq=250 ...
1
vote
0answers
48 views

PI3 Ubuntu Server 16.04.03 - UART issue

I'm trying to setup UART, for a final year project at university, on the PI3, I need to switch ttyAMA0 to the GPIO pins in place of ttyS0. I have tried adding the device tree overlays 'pi3-disable-bt' ...
0
votes
0answers
29 views

mraa uart failed to setup

I've installed and built mraa: https://github.com/intel-iot-devkit/mraa I've compiled and ran uart.c in examples folder. But I get this error message: "UART failed to setup" I've found that it may ...
1
vote
0answers
62 views

Struggle to read data with serial port of Rasp3

Sorry if I am asking something very basic, did not find any good post on how to handle this.. I am following a tutorial on how to communicate with my PI 3 using UART. I followed theses steps: Delete "...