Questions tagged [uart]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
86 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 ...
2
votes
0answers
4k 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
472 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
1answer
49 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
2k 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
1answer
111 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
707 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
1k 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
2k 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
250 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
1k 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 --------------------------------------------------------------...
2
votes
1answer
2k 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
3k 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
2k 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 ...
2
votes
2answers
5k 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
3k 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
161 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' ...
1
vote
0answers
71 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 "...
3
votes
1answer
1k views

Serial USB-RS485 failing to read on Pi but not on Ubuntu laptop?

I am reading values from a Battery Management System using two, serial USB-RS485 adaptors (ftdi). I am doing this over MODBUS using the minimal modbus library and python: # Bank A # port name, slave ...
2
votes
1answer
551 views

Using the UART GPIO pins on a pi 3 to output characters to a TI MSP430

I'm currently building a remote controlled motor driven robot that is taking USB remote input, and output said input through the UART TX pin to a Texas Instruments MSP430 launchpad, that is connected ...
1
vote
1answer
180 views

UART program on RPI 3 is not waiting for response

#include <stdio.h> // perror #include <sys/mman.h> // mmap #include <sys/types.h> // fd open #include <sys/stat.h> // fd open #include <fcntl.h> ...
0
votes
1answer
963 views

Need to get my RPi 3 to work with two UART devices

I am working on a project and I am trying to connect a GPS receiver to the RPi through uart and a TNC-Pi (Terminal Node Controller) Both of the instructions want me to use "ttyAMA0" and move bluetooth ...
7
votes
1answer
479 views

Bit waveform clarification

I have been trying to learn more about bit transmission through the uart, and I have the following code in python to transmit information: import serial ser = serial.Serial( port='/dev/ttyAMA0',...
1
vote
1answer
740 views

High speed bit bang GPIO reading

I'm trying to establish a UART communication link by means of bit-banging. For the TX part, I am using the pigpio lib to form a 1Mbaud wave of bits (gpioWaveAddSerial). I have checked it and it with ...
0
votes
1answer
58 views

Edit the UART communication protocol

Is it possible to manipulate the bytes on a bit level prior to sending through the hardware UART, or do I have to implement a software version (bit-banging)? I was thinking of changing the clock ...
1
vote
1answer
3k views

How to use Bluetooth, SPI and UART at the same time with an RPI3?

I just bought a Rpi3 and a Kuman 3.5" screen to make a minimal computer. I also have a PN532 to do NFC. My configuration: - Kuman 3.5 screen is connected to SPI0.0, touchscreen to SPI0.1; - I need ...
0
votes
1answer
639 views

Access Raspberry Pi3 Timer using Python

there is a way to get access and then configure Raspberry pi Timers using a Python? I saw some code to do that but it always be in C. Like here [BareMetal] Timer on Raspi All this I need to send ...
1
vote
1answer
2k views

Read & Write on UART don't work

I made a pair of programs to test UART function (GPIO 14 and 15 connected together). The read side works in a infinite loop and prints everything it got: #!/usr/bin/python import serial import time ...
2
votes
1answer
1k views

UART pins not reading sensor output RPI3

This is my first pi project so im a bit new at this. Im trying to connect a senseair K-30 CO2 sensor to the pi via the UART gpio pins. This is the sensor I am using: https://www.co2meter.com/products/...
0
votes
1answer
2k views

UART Communication between Raspberry pi and Atmega32

Lately, I have been trying to serially communicate raspberry pi with Atmega32 using UART. The raspberry pi has to calculate some coordinate value and transmit it to Atmega which controls motors. I ...
2
votes
1answer
879 views

Error message when setting parity for serial on rasp pi 3

I am trying to get the uart serial to work but when I try to set the parity the following error comes out. pi@pi3:~ $ python3 Python 3.4.2 (default, Oct 19 2014, 13:31:11) [GCC 4.9.1] on linux Type "...
0
votes
0answers
326 views

Attaching GPS Breakout to Pi Zero, only semi working

So I have the adafruit GPS attached to a pi zero W via UART cat sudo cat /dev/ttyS0 will get me data $GPGSA,A,3,05,29,25,21,20,,,,,,,,2.46,2.27,0.95*01 7,81.8,M,47.6,M,,*4C $GPRMC,111257....
1
vote
1answer
514 views

UART Connection between RPi and Arduino but RPi not RXing properly

I'm using WiringPi's library to read information from my Arduino on my Raspberry Pi 3b. The RPi is connected to the Arduino as so: RPi <-----> Arduino 8 (TX) <-> 17 (RX2) 10 (RX) <-> 16 (...
0
votes
2answers
1k views

Connect GSM module via serial0 and GPS via USB

I have a GPS module connected vía UART in the GPIO. Now I want to add a GSM module to my proyect but my TX RX pins are busy with the GPS. I saw an adapter to connect the GPS through USB with a UART ...
1
vote
0answers
187 views

Flashing Arduino sketches from RPi using UART interface

I am communicating with two Arduino Unos, using my Raspberry Pi 3 via the UART interface. I have established serial communication between them. But I was wondering if there was a way to use this to ...
0
votes
1answer
212 views

Raspberry pi 3 UART non functional after configuring uart pins as GPIO

I'm using python on a Raspberry Pi to test an external device. The external device requires that the UART Tx line be low during initialization. To accomplish this I configure the UART Tx line as a ...
1
vote
1answer
850 views

Enabling both UART ports in GPIO

I have a project at this moment, and I had to disable the Bluetooth of my Raspberry Pi 3 to use the AMA0 port, I mean the main UART port. At this moment I need use both ports: AMA0 and ttyS0. Are ...
4
votes
1answer
2k views

Bluetooth UART on the Compute Module

We're trying (unsuccessfully) to attach a UART bluetooth SoC to the Raspberry Pi 3 Compute Module. The bluetooth SoC is a based off a Nordic nRF51. It's running project Zephyr RTOS hci_uart sample. ...
0
votes
1answer
618 views

Lego EV3 infrared sensor to raspberry pi 3 direct connection via UART?

I connected this sensor with raspberry via UART( I have found that this IR sensor is one of few Lego sensors that connects via UART), and make serial_read and serial_write python scripts, just to test ...
3
votes
1answer
363 views

uart issue in pi-3

I have a problem regarding the uart not working at all, following are the steps as done from my side. updated and upgraded the raspberry pi,initially i installed raspbian wheezy to sd card and i am ...
3
votes
1answer
3k views

Sim800 not responding to AT commands

I have a Sim800 GSM module hooked up to pins 8 and 10 of the a PI B+ running the latest version of Jessie. I have configured Jessie so that nothing else is using the TXD0 and RXD0 pins. If I connect a ...
1
vote
1answer
1k views

UART communication - AVR C to Raspberry Pi 2 Python [closed]

I am still a Raspberry Pi newbie. I am using an Atmega32 to transmit data to a Raspberry Pi 2 via UART. The Atmega transmission code is in C and the RPi receiving code is in Python 2.7. Below is the ...
-2
votes
1answer
1k views

Programming ATmega328P over Pi UART

I am developing a new product, and I need a simple way for users to be able to program an on-HAT ATmega328P using UART on the Pi. It looks like I have to use a reset pin, but I'm not confident about ...
0
votes
1answer
4k views

Serial Communication of Raspberry pi 3 with HC-05 bluetooth module

While transmitting int value from Arduino to raspberry pi3 using HC-05 Bluetooth module it receiving some garbage hex value like "/xc8" for 200. import serial import time ser = serial.Serial("/dev/...
5
votes
4answers
11k views

Connect sim800 to Raspberry PI (RX, TX)

I've been trying to connect my sim800L to my Raspberry pi 3 model B (rasbian) but without success... I'm at the very first step, and since I'm new to Raspberry pi, I don't understand very well how it ...
1
vote
0answers
2k views

How do you get an RFID reader to work with Raspberry Pi 3 and UWP?

everyone! This question is in relation to my Raspberry Pi 3 and Windows 10 IoT Core project. I intend to use an RFID Reader (short range only), along with an universal windows application, plugged to ...
0
votes
0answers
147 views

Enable Rs485 using timer555

I'm looking for some help with a PCB design i'm doing, i want to connect a power analyzer thar requites Modbus protochol, using 485 halfduplex For that to work i need to enable a disable the rs485 ...
0
votes
1answer
7k views

UART Send/Receive not working

I'm trying to get communication though UART with a freedom board working with Python3 on Raspberry 3 Jessie. This is my first attempt and I don't have any experience in that. The code of the freedom ...
2
votes
1answer
446 views

Can the raspberry pi be used as a serial converter to debug other boards?

I have a board running linux and it doesn't boot when connecting a specific hardware, the board doesn't even load the kernel so i have to use a serial cable to see what's causing the issue, currently ...
0
votes
0answers
829 views

How to use UART for console and other UART peripheral for expansion boards on 3 model b v1.1

I don't have SSH access or a dedicated external monitor and keyboard for this raspberry pi, so I would prefer to have serial access, which I have working with a device-tree overlay. The thing is, I ...

1 2 3
4
5
7