Questions tagged [uart]
a Universal Asynchronous Receiver/Transmitter, better known as serial port
370
questions
0
votes
0
answers
78
views
How to enable serial communication on Pi 4 using BookWorm OS?
Raspberry Pi 4 and Latest Raspbian Bookworm OS.
I want to have Pi 4 communicate over serial connection using GPIO14 (BCM) and GPIO15 (BCM) or UART TX and UART RX.
I have followed the same setups that ...
0
votes
0
answers
34
views
Where does Pico micropython print go with main.py?
If you load a main.py file onto the Pico with micropython firmware running, it will run on startup. I can tell that this is working because I observe GPIO outputs changing, etc.
However, I'm not sure ...
0
votes
0
answers
43
views
No output from /dev/serial0 (RPI 4) [duplicate]
I am also doing similar project with raspberry pi 4 (bullseye version) and neo 6m module. I have followed all the steps given in https://sparklers-the-makers.github.io/blog/robotics/use-neo-6m-module-...
0
votes
1
answer
49
views
Unable to use my SIM900A Mini GSM module with my Raspberry Pi 3 B
I'm trying to connect my Raspberry Pi 3B with my SIM 900A Mini GSM module ( https://acoptex.com/wp/wp-content/uploads/2019/12/SIM900Apro3.jpg ).
I'm facing the following issues ( maybe they are ...
0
votes
0
answers
20
views
Connecting SIM800A to Raspberry Pi Zero WH with RS232
I'm trying to set up a very simple mobile proxy server using a Raspberry Pi Zero WH and a SIM800A GSM Module. The particular module I seem to have has an RS232 port as well as described in the picture....
0
votes
1
answer
148
views
Failing to remap UART pins on RPi 4 - but maybe close?
Firstly, I'm floundering and out of my depth, like a blind man in a dark room looking for a black cat that really isn't there. I've been going around in circles all day with this and have had to admit ...
0
votes
1
answer
383
views
Using USB port as serial UART
So I have a circuit board (IWR6843ISK) that I want to connect to RPI400 via USB serial to send and receive data. Here are some details:
This board uses a USB to dual UART bridge (micro USB port).
I'...
0
votes
1
answer
294
views
How to receive data longer than 32bytes through PICO UART?
I have wrote a code to process data received in a PICO from Raspi PI. I have a slider which sends number to the PICO(through UART) to set some values. If the slider is dragged slowly or clicked the ...
1
vote
0
answers
58
views
Transmitting Serial data via Wi-Fi from Raspberry Pi to Wi-Fi Module
I previously built two separate projects for sending/receiving data between an Arduino and a Raspberry Pi 3. One transmitted via Bluetooth (HC-05 Module on the Arduino-side to the built-in BT module ...
1
vote
2
answers
120
views
Pi4 enable uart4 without using boot/config.txt
I need to be able to enable uart4 on a Pi4 using dtoverlay, without adding it to /boot/config.txt, and have /dev/ttyAMA2 available immediately. The dtoverlay part is easy, sudo dtoverlay uart4, but /...
0
votes
1
answer
263
views
Bluetooth and UART raspberry pi zero w
My objective is to get both data from VN200 GNSS/INS sensor (using GPIO14/15) and heart rate monitor strap Polar H10 (using Bluetooth) at the same time for synchronization.
Bluetooth on pi zero w by ...
1
vote
0
answers
79
views
TF03 LiDar Distance Sensor UART Issues with Pico
I'm having issues getting a pico to receive data from a Benewake TF03 Rangefinder LiDar distance sensor. The User guide/Documentation mentions it working from 5-24V and it uses low voltage (3.3V) TTL ...
1
vote
1
answer
324
views
How to Access Terminal Over Serial Port in Raspberry pi 4
I'm trying to Read and Write over Serial Port to Terminal in Headless Linux That I Installed on my Rpi4.
is That even Possible? is so, how?
2
votes
0
answers
114
views
RPi 3B+ & Yocto & U-Boot : free UART pins to be available for a RS232/485 HAT
I have the following hardware/software setup:
Sferalabs StratoPi Base (Raspberry Pi 3B+ with a HAT for RS232/485)
Distro built with Yocto and meta-raspberrypi on thud branch
U-Boot
SysVinit
I want ...
1
vote
0
answers
41
views
Pi Zero V1.3 miniuart not working
Ive got a bare metal project that has been running on Pi 3 without problems, i want to start moving it over to the Pi Zero, i have a V1.3 Pi Zero (not W) here so started with that. Ive stripped it ...
0
votes
1
answer
602
views
Buffer size for /dev/ttyS0 in python
I got a Raspberry Pi 4 processing Lidar data (RPLIDAR S2) with python (PySerial library). The lidar sends data in chunks of about 50-60 bytes at 1000000 bps over serial. When I use a USB Serial FTDI ...
1
vote
0
answers
233
views
UART3 RX/TX mode doesn't work for Raspberry Pi Compute Module 4!
I am using Raspberry Pi Compute Module 4:
Linux raspberrypi 5.15.82-v7l+ #1605 SMP Thu Dec 8 15:21:38 GMT 2022 armv7l GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
...
0
votes
0
answers
281
views
Waveshare 2CH RS232 HAT on Raspberry pi 4 not sending nor receiving message
Hi Raspberry pi enthusiast,
Recently i'm using 2 Channel RS232 Hat from waveshare placed on top of raspberry pi 4. And i already follow all the instruction on this waveshare's wiki. but, until right ...
0
votes
1
answer
72
views
Can I use the HAT eeprom pins as a uart?
I have a Pi 4B and I want to use the HAT EEPROM I2C pins for the uart 4 that is behind them. This is a board just for me and all my other uart locations are in use. How do I disable the EEPROM scan ...
1
vote
1
answer
871
views
Is this an acceptable way to set the rx/tx pins for uart1?
I'm on a Raspberry Pi Zero 2 W.
Let's say I invoke this command.
sudo dtoverlay uart1 txd1_pin=16 rxd1_pin=20
Does this then mean I can use those two pins via /dev/serial1?
$ raspi-gpio get | grep -i ...
1
vote
2
answers
306
views
Is this an effective way to test GPIO 15?
I'm working with a Raspberry Pi Zero 2 W running Linux raspberrypi 5.15.61-v7+.
Is this a reliable way to establish that I have a non functional GPIO 15?
First, I establish that my test mechanism ...
1
vote
2
answers
292
views
UART (not the board itself) stopped working after connecting 5V to GND, can it be recovered?
I accidentally connected UART wires one row lower than it should be (see image):
then I unplugged them shortly after that and then connected correctly, but serial console doesn't work anymore. USB ...
-1
votes
1
answer
47
views
Can't get the correct serial response between Raspberrypi 4 and Pico
I'm trying to make a little connection between both my Raspberry pi 4 and my Pico.
Everything was ok until the pico suddenly stoped recieving what I'm sending from the Raspberrypi.
Expected Outcome
I ...
1
vote
1
answer
1k
views
Rpi Pico receiving on multiple UARTs
Expected behavior:
in hardware I connect UART of a number 0/1 to the correct Pin numbers tx/rx and get it based on that connection
Actual behavior:
in hardware I connected UART of a number 0/1 to the ...
2
votes
2
answers
1k
views
UART usage with Ubuntu PI3 Model B
Can someone tell me the steps what I need to do tu get a serial communication to work?
I have a raspberry pi 3 model b rev 1.1 with Ubuntu Server 20.04. I need to communicate with a sensor via serial ...
1
vote
0
answers
139
views
RPi 2 GPIO UART can send data to Teensy, but can't receive
I am trying to send data between RPi 2 (model B) and Teensy 3.2 using the GPIO on the Pi (GPIO 14 and 15) and Serial2 on the Teensy (pins 9 and 10).
The problem is, I can only send data from the Pi to ...
3
votes
4
answers
494
views
raspberry pi voltage rs-232 (uart)
I am trying to configure a sensor with serial communication (raspberry-sensor). But i have connected my sensor to a oscilloscope see photo. I don't know if i can connect it directly to my rspberry pin ...
0
votes
0
answers
1k
views
Different UART behavior between ttyS0 and ttyAMA0
I'm using serial to communicate with this board (Serial-CAN-Board) on a RPi4. UART is enabled with
enable_uart=1
Console over serial has been disabled with raspi-config and I am using SSH over ...
0
votes
1
answer
241
views
using serial port ttyAMA0 as primary port for rs485/modbus; permissions blocked
I cannot open /dev/serial0.
I selected "turn on serial port" and "do not run a console on serial port" in raspi-config.
The /boot/config.txt contains no reference to "console&...
1
vote
1
answer
471
views
Raspberry pi 4, UART4 and SPI0
Raspberry pi 4 has 4 usable uart ports, uart 4 with rx in gpio 9 and tx in gpio 8, share rx pin with SPI0 miso0 pin.
I would like to use both peripherals no ate the same time, but in different moment ...
1
vote
0
answers
338
views
Having issues interfacing SPS30 with Pico
I am trying to interface SPS30 via UART, but I am not able to start the fan. I am getting some response but it won't match any possible response from the datasheet. Using Micropython.
Below is the ...
0
votes
1
answer
724
views
raspberry pi zero 2 w: use PL011 UART and log on to linux over wifi simultaneously
Here is what I am trying to do: log on to linux running on a raspberry pi zero 2 W. But I also want to use the "real" UART PL011 (NOT the mini uart) for RS485 (modbus) at the same time.
On ...
0
votes
2
answers
459
views
(Pico) USB serial connection having noise?
I'm having some trouble trying to make a simple USB IO demo to test the Pico. Apparently, the USB serial connection seems to be noisy, and always puts something into the UART buffer even though I am ...
1
vote
1
answer
115
views
Connect several sim800l with external power supply to the uart of ip4 and floating ground
I am creating a circuit with several sim00l connected to different UARTs each with its own external power. But I'm curious if having other objects like cooler-fan connected to other GND of the rpi ...
0
votes
0
answers
549
views
Why does Pi Pico duplicate and mix-up characters received over UART when programmed in C?
I have a Raspberry Pi Pico whose Tx and Rx pins are wired to the Rx and Tx pins of a Wemos D1 Mini development board. The Wemos and the Pico are powered via an external 5V power supply (common ground)....
0
votes
0
answers
2k
views
How to use Raspberry Pi 4 with an USB to RS232 adapter cable over the serial port
I would like to use a Raspberry Pi4 to control a syringe pump [(see datasheet here and in particular the quick start manual on page1)][1]
The connector cables I used are RJ11 from the Pump to RS232 (...
1
vote
1
answer
1k
views
How to clear UART RX error for pico (RP2040)?
While working with a RPi Pico UART RX routine in C using pico-sdk, I have realized that uart_get_hw(uart0)->rsr; reports an error - that is, it has a value different from 0 (in my case 13, which is ...
-1
votes
1
answer
360
views
Rx, Tx/UART not being detected by Pi? What is wrong?
I'm working on Serial communication between the Raspberry Pi and the Arduino, with the Raspberry Pi serving as master. I connected, using a logic level shifter, Arduino's Rx (Software Serial was used ...
-1
votes
1
answer
287
views
Turn LED off and on using I2C, SPI or UART GPIO Pin
I have project requiring several simple LEDs and buttons, MORE that the number of ‘simple’ GPIO pins. Can I turn the LED TOTALLY OFF and on using a IC2, SPI, or UART pin? Can those pins be programed ...
0
votes
0
answers
135
views
Indecipherable Characters with UART on Pi 2
I am attempting to use the UART pins on the Raspberry Pi 2 to interface with the console port on a Cisco Access Point.
I've stripped an old RJ45 cable to connect the right TX, RX and GND pins from the ...
1
vote
1
answer
717
views
Raspberry pi and nextion touch screen communication using python
I have tested several python codes to set up the communication between raspberry pi and nextion touch screen (I used TTL serial GPIO 14 and 15). Unfortunately, the communication is not stable, the ...
1
vote
1
answer
424
views
Missing dtbo overlays in Yocto build for Compute Module 4, what do I need to get them added?
So I have a problem that I have half solved and was hoping someone would know how to solve the rest.
So yesterday I encounted a problem that I asked and partially solved at the link below.
CM4 Uart 0 ...
0
votes
0
answers
101
views
Can't modify UART 5 baudrate
I'm trying to communicate a NUCLEO-F746ZG with a RPi-CM4 thru the UART5.
I need, at least, a baudrate >= 4000000.
Using the stty -F /dev/ttyAMA2 4000000 I get the "unable to perform all ...
-2
votes
1
answer
702
views
UART make sure to prevent data loss; choppy binary transmission [closed]
If I use UART to send sensor data from a Pi Pico to another computer (received via /dev/tinyUSB0), does the "default protocol" have any sort of error correction? I guess I don't need to ...
0
votes
2
answers
2k
views
Possible to send data from a Pi Pico via USB while running CircuitPython?
I have a question on the interaction between Pi Pico, CircuitPython, and USB. I need a way to send a data stream from the Pico to another computer where it will be received on a USB port (it's the ...
0
votes
1
answer
183
views
How to connect Sim800c development board to raspberry pi 3
i bought this development board Professional Small Size SIM800C GSM GPRS Module Quad-band Development Board Module Suitable for Raspberry Pi (blue & silver) https://www.amazon.it/dp/B07NVZ59JS/ref=...
0
votes
1
answer
532
views
ch341-uart converter randomly disconnects from Raspberry
I'm facing problem, with ch341 uart chip. ch341 works normally at startup for about 120seconds. After that it disconnects. I'm attaching dmesg bellow.
What it could be a problem? Tried with different ...
0
votes
1
answer
539
views
How can I "test data" coming in to a Pi from an UART device connected via TTL-to-USB
I've got a Waveshare PN532 RFID reader/writer. I want to use it with a Pi 4B, but since it is already using a HAT with no free GPIO, I want to use it in UART mode, but not connecting to the GPIO pins ...
2
votes
1
answer
5k
views
How many (usable) serial ports does Pi Zero 2 W have?
The Raspberry Pi 1, 2, 3 and Pi Zero / Zero W all have two UARTs (PL011 + mini UART). The Raspberry Pi 4 and 400 have six UARTs (5 x PL011 + mini UART). This is from the official documentation.
I have ...
3
votes
2
answers
3k
views
Does a UART connection require shared ground?
I'm a novice with electronics but not Linux. This situation has had me scratching my head for two nights.
I connected a Pi Pico to a Raspberry Pi 4 via UART, and managed to receive messages sent from ...