Questions tagged [uart]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
68 views

how to acces mini uart on a raspberry pi 0?

I would want to be able to access the serial console and have an extra serial port so is there any way to access the mini uart with the gpio since its not being used for bluetooth. I'm using a ...
0
votes
0answers
1k views

Raspberry Pi 3 Model B FTDI USB to Serial converter driver problem

I've been suffering to introduce my USB to Serial (RS232) FTDI converter on Raspbian 10 on my Raspberry pi 3 Model B. In Windows 10 it works without installing an additional driver. FTDI drivers ...
1
vote
0answers
20 views

How do I fix my crashed bluetooth? [duplicate]

After an apt update today, my bluetooth menu disappeared from the menu bar. Even the services are not running anymore. Whenever I am trying to fix something(with systemctl and apt), this message ...
1
vote
0answers
398 views

How can Rpi4B use multiple on board and USB based UART / serial ports?

there. I am trying to use rpi 4 to access my own device through UART. However, the number of UART port isn't enough for me since I'm trying to access more device in same time. Thus, I want to know if ...
0
votes
0answers
45 views

Raspberry Pi receives its own sent USART bytes (pyserial)

I have an understanding question about the USART interface on the Raspberry Pi, in connection with the library pyserial 3.4 (https://pypi.org/project/pyserial/). After the bytes have been sent out of ...
3
votes
3answers
1k views

RPi 4 -- Garbage on serial console (UART) using upstream kernel

I'm experimenting with upstream kernel and now I try to get serial console working. I'm getting only garbage symbols when I try to communicate: I think it is important to notice that I only get ...
4
votes
1answer
662 views

How do I use a Raspberry Pi to install OpenWrt firmware on a BT HomeHub 5a or PlusNet Hub One router

I have a spare BT HomeHub 5a clone (actually a PlusNet Hub One router). I would like to install the OpenWRT firmware on it, in order to reliably use it as a wired wifi range extender without a DHCP ...
1
vote
0answers
68 views

reading from 2 UART at the same time

I am reading values from 2 UARTs. i want to read at the same time (without time shift between the 2 UART) the values they send in order to add them. How do I achieve that? I am searching on google, I ...
0
votes
1answer
81 views

UART input from programmable IC to Pi Zero W

I'm trying to send a signal from a programable IC to my Pi Zero W but all I get is b' ' My IC is setup to send an alternating value between AA and 55. The data is sent on the UART line every .35 ...
1
vote
1answer
1k views

How to enable more uart port on raspberry pi 4 ubuntu server 20.04

i recently got the raspberry pi 4 for a university project. I installed ubuntu server 20.04 on it. Now I tried to enable a second uart port, because for the project I need to connect multiple sensors ...
2
votes
2answers
86 views

Why is UART-USB link inserting many unexpected bytes when using /dev/serial0 with dev/ttyUSB0?

My first post and my first Pi project. I'm experimenting with data transfer between Pi and external UART-enabled devices. As part of this, I want to prototype simple bi-directional data transfer ...
0
votes
0answers
144 views

minicom cannot write to UART on certain laptop, works on different one

I have connected UART according to https://learn.sparkfun.com/tutorials/headless-raspberry-pi-setup/serial-terminal and set enable_uart=1 and dtoverlay=miniuart-bt in config.txt. Running the system, ...
1
vote
0answers
400 views

Raspberry pi 4 model b uart is unable to write

I got some questions about uart in raspberry pi 4 model b. I used to run my program in rpi 3 model b+, but everything went wrong when I tried to do the same thing on pi 4. First of all, each time I ...
1
vote
0answers
324 views

RPI Serial Communication through USB

I am trying to set up serial communication between my Raspberry Pi Zero W and my PSoC. I want to do this through a normal microUSB to USB 2.0 converter cable, which looks somewhat like this picture: ...
1
vote
0answers
85 views

RPI3b+: UART serial communication problem

I have my RPI setup to communicate serially with another board. Currently, I have a usb to serial converter which is plugged into one of the RPI ports. This works well but, I want to take that out and ...
0
votes
0answers
27 views

Sending an image from one Raspberry Pi 3B to another using Rx/Tx

I'm working on a project where I need to transmit a picture from one Pi to another using serial communication .. it is not possible to send it via the network .. it is required in the project to send ...
0
votes
2answers
304 views

Reading serial data from thermal camera MLX90640/GY-MCU90640 with Raspberry Pi 4 returns garbage characters

I am trying to read data from an MLX90640 thermal camera using the GY-MCU90640 board based on this tutorial. VIN is connected to 5V (4) GND is connected to GND (6) RX is connected to TX/GPIO14 (8) TX ...
1
vote
0answers
75 views

Uart Communication pi to pi

I first connected two raspberry pi, one is Model 4B(transmitter) and another Model 3 B+(receiver) via Uart. Done all uart enable steps (sudo raspi-config>Interfacing Options>Serial>Serial Interface is ...
1
vote
0answers
61 views

USB ports for 4G modules disappears after resetting the 4G module

I am using the EC25 quectel LTE module with Raspberry Pi 3 Model B. I can access the internet using serial pins of raspberry pi i.e. UART Tx and Rx. I can find ttyUSB[0-5] in ls \dev. I am sending AT ...
0
votes
1answer
251 views

Serial port on RPi 3 gets incorrect data using mini-UART

I have a sensor which every 1 second spits out a 32-character serial stream at 9600 baud. I hooked it up to the mini-UART pins on the GPIO connector. What I saw was bad data. After staring at the ...
2
votes
0answers
74 views

Mini-UART on RPi 3 and earlier loses synchronization if parity bit used

I have a sensor which every 1 second spits out a 32-character serial stream at 9600 baud. I hooked it up to the mini-UART pins on the GPIO connector. What I saw was bad data. After staring at the ...
1
vote
0answers
153 views

Getting garbage characters on RPi3 UART console, logs on HDMI are perfect

I have searched a lot on internet and tried all suggested solutions like criss-cross connection, checking loose connections, changing baud_rates and using GND connection for UART, but nothing seems to ...
0
votes
0answers
146 views

Can we implement a protocol other than spi on Raspberry Pi?

Pi supports SPI, I2C and UART by default. Can we implement any other protocol like MDIO into it? If yes, how do we do it?
0
votes
0answers
107 views

SIM800C GSM Module with USB to TTL Serial CH340 Module

I'm planning to use this instead of connecting the pins of the GSM module to the pins of the RPi3B. Since the voltage for the TxD and RxD pins of the SIM800C is 5V and the TxD and RxD pins of the ...
0
votes
1answer
811 views

Connecting a USB Device by GND, VCC, RX, and TX

I have a few basic devices that utilize a mini USB port. Rather than plugging them into a USB hub, is it possible to connect them and have them recognized by a Raspberry Pi through the four GND, VCC, ...
1
vote
1answer
215 views

Connecting Raspberry Pi to 5V UHF RFID reader over TTY via level shifter

I want to keep track of UHF RFID stickers. I'm hoping to do this using a Raspberry Pi zero attached to an UHF RFID reader. I acquired this reader: https://www.aliexpress.com/item/32848525319.html ...
1
vote
0answers
47 views

Could not read all bytes from /dev/ttyS0

I try to send some data to a module which connected via UART /dev/ttyS0, I send a standard command to module and module send me back a 13 bytes acknowledgment, but the first 5 bytes of ack not ...
-1
votes
1answer
141 views

Raspberry UART ports (GPIO14 & 15) show only "\xff"

I am trying to use UART port to receive a signal from Wiegand, but I am only receiving \xff when baud rate = 9600 b'\xff' b'\xff' b'\xff' b'\xff' b'\xff' b'\xff' b'\xff' b'\xff' When changing the ...
2
votes
0answers
102 views

How can I reconfigure the UART on the fly?

I have a Pi Zero with Raspbian which I'd like to use as a logger device with WiFi (it's not a W, I'm using an external WiFi stick). I need the UART to communicate with a microcontroller but sometimes ...
1
vote
2answers
263 views

Rpi zero w serial code python

So i set up my rpi zero w to comunicate at 11500 serial with an arduino... the arduino sends over serial lines such as "~1 11443". My idea is that the ~ character tells the pi when to look for data, ...
2
votes
1answer
366 views

Rpi3B+ Control Half Duplex UART Bus Servo DynaMixel AX-12A, HiWonder LX-224HV Problem

I have a project to make mobile robot with Dynamixel AX-12A as the wheel, so i changes the AX-12A to Wheel Mode with CM-530 and it works well. I follow the guide from http://www.oppedijk.com/robotics/...
0
votes
1answer
1k views

How to use serial and bluetooth at the same time

I'm working on a drone project using a mobile phone do send pitch/roll/throttle and yaw to a Rpi 4 2GB over bluetooth. This is no problem. But, then I want to send these values to the ...
1
vote
1answer
718 views

How can Rpi4B python UART talk to XY PWM Signal Generators?

Currently I am trying to automate a coil winding machine using stepper motors. I wrote a Python code to send frequencies to the stepper motors. But for some reason, the frequencies produced by ...
2
votes
1answer
2k views

SIM800 GSM Module To Raspberry Pi UART Serial Communication Problem

I am new to Raspberry Pi Zero and I want to connect it with a GSM module for GPRS connectivity. I bought the SIM800A GSM module but its LED is not even blinking one single time. I am able to turn on ...
7
votes
2answers
19k views

Where are the uarts on the raspberry pi 4?

The raspberry pi 4 has at least two uarts (as shown here), I know where I can connect to one of them. Pins 8, 10 and 12 have a uart as an option. Source: This site describes accessing uart1, where ...
0
votes
1answer
5k views

Configuration UART on pi 4

I am trying to configure the UART on the Pi 4. I have entered enable_uart=1 into /boot/config.txt and I have sudo systemctl disable serial-getty@ttyS0.service and removed console=serial0,115200 ...
0
votes
2answers
5k views

using GPIO pins as TX/RX pins

I'm working on a project that needs multiple TX/RX pins, but the Raspberry Pi that I have only has 1 of these pins. Can I use the GPIO pins as TX/RX pins? Or is there an adapter available somewhere? ...
0
votes
0answers
32 views

Can't read from serial0 using PySerial when python script starts at boot [duplicate]

I have a Python script that uses Pyserial, connects to '/dev/serial0' and reads from it in loop. The script works fine when starting it manually after the RPi is up. However, when I added the script'...
0
votes
1answer
130 views

Running multiple programs that use the same UART bus

Let's say we're writing two programs that uses both UART bus. The program A uses UART at 9600bps baud rate, and the program B uses UART at 115200bps baud rate. Can both of them operate concurrently ...
0
votes
0answers
179 views

Arduino Mega to Raspberry pi 3 Uart communication stops after a short while

I have been trying to setup a data stream from Arduino to rpi using an USB to Uart converter. I am using 4 startbytes and then reading all 36 bytes of data at once. Baudrate, parity and stopbits are ...
0
votes
0answers
196 views

Unable to open serial port GPIO pins

I'm trying to connect a barcode reader on the UART of the GPIO pins of the Raspberry Pi 3B+. I've installed minicom to read the serialport and have allready added the user pi to the groups tty and ...
1
vote
1answer
1k views

Mini UART Bluetooth PAN on Pi Zero W

I followed these instructions to enable a Bluetooth PAN on my Raspberry Pi Zero W. It mostly works fine, but it occupies a serial port. I need UART (mounted at /dev/ttyAMA0) for serial communications, ...
10
votes
1answer
4k views

Pi 4 I/O interface options... and where to find them

The BCM2711's hardware documentation lists multiple I/O interface options. Among others these are: up to 6 × I2C, up to 6 × UART (muxed with I2C), up to 6 × SPI (only five exposed on Raspberry Pi ...
1
vote
0answers
704 views

Interfacing SIM800L with PPP [LCP Terminated by Peer]

I am using SIM800L, and managed to interface it with RPi3. After successful configuration on /etc/ppp/peers/rnet, my file looks like this connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T ...
2
votes
1answer
341 views

How to connect 3V3 UART logic level to the 5 V RS232 C logic level?

How to connect the 3.3 V Raspberry Pi UART logic level to the 5 volt RS232 C logic level?
1
vote
1answer
7k views

Simple command line to write and read data from UART (serial) loopback

I want to connect the TX and RX pins together and from the command line echo some text into /dev/ttyAMA0 and tail the result (from somewhere). I ultimately want to communicate with an Arduino but ...
1
vote
1answer
38 views

Connecting Raspberry Pi to SFM3520-OP fingerprint module

I want to connect an SFM3520-OP fingerprint module with the RS232C serial port to the Raspberry Pi UART but I am doubtful about their logic level. Should I use a Max2323 or does it not need it?
2
votes
0answers
249 views

SPI0 and UART0 interference caused by SPI interrupt

I have a raspberry CM3 running a custom Linux version created by buildroot (kernel: 4.19.44-v7). The CM3 is configured to be part of a measurement system that is used on a quad-bike (so a lot of ...
2
votes
1answer
5k views

How to enable CTS/RTS (Hardware Flow Control) for MAIN UART (PL011) on Raspberry Pi 3 B+ module?

I am working on Raspberry Pi 3 B+ module with raspbian stretch lite os. I Wants to configure UART interface on Raspberry Pi 3. I have referred the following link & I am able to test UART ...
1
vote
1answer
851 views

use GPIO and/or UART to slow initiate K-line (ISO9141-2) communication with Audi ECU

Related to this question I'm learning to use the Pi GPIO and Python serial to communicate through an IC (L9637D) to interrogate PIDs for alarms etc. I can't get past the slow initiation sequence! ...

1
2
3 4 5
7