Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [serial]

is the process of sending data one bit at a time, sequentially, over a communication channel or computer bus. Traditionally "serial" relates to a three (or more with hardware handshaking) wire system (TIA-232-F), now using ∓25V Voltages. Technically speaking the specialized SPI (Serial Peripheral Interface) and I2C (Inter-Integrated Circuit) buses are serial communication systems as well - use one of those tags if they would be more appropriate!

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

U-Boot on alternative pins

My GPIO 14/15 pins (and I believe UART0 and UART1) are broken, so I cannot use the default serial port for U-Boot. How can I get U-Boot to boot on a different serial port on my Raspberry Pi 4B?
Jeremy Salwen's user avatar
-1 votes
1 answer
15 views

Minimal config.txt for enabling UART0

I am attempting to connect to the UART0 on my Raspberry Pi 4B. I have shorted together GPIO pins 14 and 15 (pins 8 an 10 on the header). I then run picocom /dev/ttyAMA0 and see if it's echoing (it ...
Jeremy Salwen's user avatar
0 votes
0 answers
25 views

Raspberry freezes when closing serial connection

I wrote a Python script with pyserial to read data from two different USB devices (Witmotion IMU, Ublox ZED-F9P GNSS Receiver). This works perfectly on Windows. Every time I run the same script on a ...
pythom2's user avatar
0 votes
1 answer
21 views

Unable to use Uart and Bluetooth in Rpi3 with audio output simulatneously

I am using Rpi 3b+ and I am trying to use the Bluetooth and UART simultaneously. with ls -l /dev: Serial 0- ttyAMA0 Serial 1 - ttyS0 I had to use the UART(for reading coordinates in gps) and ...
Aryan's user avatar
  • 1
0 votes
0 answers
15 views

Issues sending data from the tx pin to an arduino via Ebyte lora module.. Stuck!

Not sure if best to post this here, in the arduino forum, or some other forum, however, here it goes, hopefully someone can help! I wondering if anyone can offer some suggestions as I have tried ...
Davey P's user avatar
0 votes
0 answers
19 views

Reading Serial (RS-485) Data (RPI5)

I have an RS-485 Shield that im using but none of the sample code or online guides for this that i can find seem to work. I'm not interested at this stage in doing anything with the data i just want ...
Elliott's user avatar
0 votes
1 answer
31 views

USB Python Script Issue Raspberry Pi OS

I'm encountering an issue where I'm trying to trigger a Python script in the background upon plugging in up to four USB devices, all with the same USB vendor and product IDs. To accomplish this, I've ...
Figaro's user avatar
  • 1
0 votes
1 answer
65 views

When is the 'disable-bt' dtoverlay necessary?

I have a Pi 3B+. There are a number of resources out there that suggest it is necessary to enable the disable-bt overlay in order to make use of the serial UART on GPIO 14 & 15. E.g., this ...
larsks's user avatar
  • 653
0 votes
0 answers
28 views

USB serial port

Trying to connect USB serial port device to raspberry Pi4. But command below does not show any changes ls -l /dev/tty* I was expected to get new device that starts with /dev/tty . Correct me if I'm ...
vico's user avatar
  • 163
0 votes
0 answers
31 views

Which Cable Should I Use to Send Serial Data From my PCB to a Raspberry Pi via USB?

My PCB has a 16-pin male connector with a 2.54mm pitch. I was going to connect this to my Raspberry Pi via its GPIO, but I have a PiSound sitting on it now, so my only other option is to connect to it ...
Jelani Thompson's user avatar
-1 votes
1 answer
35 views

Rpi Pico receiving on multiple UARTs by C-SDK [closed]

How make by C-SDK same Rpi Pico receiving on multiple UARTs
YAsunari GEN's user avatar
0 votes
1 answer
97 views

Communication between two RP2040 devices with micropython

I have two RP2040 devices, one a Raspberry Pi Pico W(H), and one a Waveshare RP2040 LCD 1.28 device. I am trying to send data from the Waveshare to the Pico through a USB cable (USB-C on the ...
Andrew Stacey's user avatar
0 votes
0 answers
18 views

USB devices changes ttyACM and device rumber on automatic reconnect

I have a Quark elec AIS receiver connected to my raspberry pi 4 and after some randon amount of time it disconnects en reconnects. After this the device number and the ttyACM* number changes. See the ...
Daan's user avatar
  • 1
0 votes
1 answer
53 views

How to disable sysrq on UART

I am trying to talk to a device over serial (ttyAMA0 or serial0) and it works, but sometimes I get the following TX from my rpi4, which crashes the device I talk to: [22763.820857] sysrq: HELP : ...
tester's user avatar
  • 1
0 votes
0 answers
48 views

Timeout Issues in PySerial. Arduino randomly starts timing out

from get_connected_arduinos import get_arduinos serial_devices = [] def initialize(serial_device): print("initializing", serial_device) try: serial_device["serial"...
UnityBug's user avatar
0 votes
1 answer
152 views

How should I go about making a serial to ethernet server on a Pico varient?

I am trying to make a serial to ethernet server, similar to a regular pi board and ser2net, using a pico variant. I am using a Waveshare RP2040-ETH Mini Development Board, but there is very little out ...
Michael H.'s user avatar
0 votes
0 answers
87 views

Test functionality of a PL2303 USB-to-UART converter

I want to connect my computer to my raspberry pi (Model 3 A+) via serial console. Here is what I did (following the setup instructions described here): In the Raspbian OS enable serial in the ...
Josef's user avatar
  • 101
0 votes
0 answers
62 views

How to clear the serial buffer of Raspberry Pi

I use MATLAB to control the serial communication of Raspberry Pi, but its communication frequency is too fast, and the serial buffer is easily full. I want to know how to clear the serial buffer? Here ...
Jackson Zhang's user avatar
0 votes
1 answer
41 views

Code hangs when receiveing data on UART using Gpio 15(RX)

I enabled the UART interface inside the /boot/config.txt file. I know I have correctly selected the serial port because ser.write(data_to_send.encode()) gets executed successfully. The line where my ...
Osama Khalid's user avatar
0 votes
0 answers
16 views

Connecting two or more arduino boards to a single Pi board

I was wondering what are the pin configurations/connections and scripting to connect more than 1 arduino to a single raspberry Pi board via serial connection.
Syed Hassan's user avatar
0 votes
0 answers
32 views

BlueDot Serial Bluetooth server for OBD

I am building an OBD Raspberry PI car dashboard and I've been struggling to get the adapter to connect and send info. I recently learned that the rfcomm support was dropped years ago by bluez and was ...
Soham's user avatar
  • 1
0 votes
0 answers
44 views

OBD Raspberry Pi bluetooth and serial connections issues

So I've been trying to get my digital dashboard code working and I have to connect to the OBD plug to the Pi but ive run into a plethora of issues since then. The first time I did it, the OBD device ...
Soham's user avatar
  • 1
0 votes
2 answers
184 views

SOLVED Incorrect baud rate on RPI 3 serial port

I have written an app to communicate with an intelligent UPS. It works fine on a Raspberry Pi 2, but seems to operate at the wrong baud rate on a Raspberry Pi 3 model B running Raspbian bullseye. This ...
JavaLatte's user avatar
  • 119
-1 votes
1 answer
898 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 ...
ThN's user avatar
  • 1,063
0 votes
0 answers
11 views

pymodus unknown message

I am using Pymodbus in Raspberry Pi for data acquisition from Modbus rtu (RS485) sensors. Other sensors worked perfectly fine so coding is ok. However one particular sensors is giving me this message ...
Brian's user avatar
  • 1
-1 votes
1 answer
44 views

ttyAMA0 serial port error

I'm trying to get gps data through ttyAMA0 serial port. Sometimes I could get gps data but I also get errors such as OSError Error11 resource unavailability. It used to be working but I get errors ...
Jooseok Lee's user avatar
0 votes
0 answers
108 views

I am trying to print "Hello World" 15 times from my Raspberry Pi Pico to a text file on my windows desktop via serial communication

Here is my code: Main.py (PICO code) import time for i in range(15): print("Hello World") time.sleep(1) Windows Desktop Python Code import serial port = "COM5" ser = ...
HEL's user avatar
  • 1
0 votes
0 answers
50 views

RS485 RTS on pin

I accidentally connected the wrong pin (GPIO21) as RTS to uart to MAX3485 IC on my PCB. Is it possible to control this pin via software for half duplex data flow for RS485? It only needs to read ...
dmvs's user avatar
  • 1
-1 votes
1 answer
2k 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'...
Discombobulous's user avatar
1 vote
0 answers
89 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 ...
JoeBro391's user avatar
0 votes
0 answers
269 views

how to enable ttyAMA0 on raspberrypi 4 and how to make it to communicate with pixhawk?

I am trying to make communication between raspberrypi4 and pixhawk board to control the drone using dronekit library and to get telemetry info. I have used pin 14 and 15 for serial communication. But ...
Kavyashree T's user avatar
1 vote
1 answer
513 views

Handling of USB connection breaks in Python3

I have USB connection from RPI4 to Pico, usually occupying ttyACM1, but occasionally after connection break/boot it may get values ACM2 or AMA0 I am trying to build an automatic recovery if USB is ...
Ismo Öhman's user avatar
1 vote
0 answers
552 views

Read serial data from incoming USB device on the Pico

So I am new to using the pico w and I am trying to connect a scoreboard controller device (Daktronics All Sport® 5000) that outputs real time data over serial. I have an RS323 to USB converter that is ...
Juhuxen's user avatar
  • 11
2 votes
1 answer
179 views

Problem with reading 433MHz RF receiver

I have problem with reading 433MHz signal. Not receiving it! I want to read it or clone it to send it with my sender hardware. My whole idea is to clone signals sent by my radio remote of windows ...
wiciow's user avatar
  • 21
1 vote
1 answer
579 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?
user avatar
2 votes
0 answers
174 views

Pi-Pico reading data from UART0 working while powered via USB but receiving garbage when powered via VSYS or VBUS

When I power the pico by usb (either from my pc or a powerbank) and run my micropython script to read from UART0, it reads the incoming data (NMEA sentences) perfectly fine. However, if I power the ...
Ryan Jennings's user avatar
3 votes
1 answer
353 views

Uninterrupted, endless SPI transfer - is it possible?

I wrote a linux driver for SPI protocol so RaspberryPi could communicate with my device that's using serial data transfer (the device has clock input and data output). It almost works, the problem is ...
PookyFan's user avatar
  • 133
0 votes
1 answer
889 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 ...
Petr Osipov's user avatar
1 vote
2 answers
87 views

close ttyACM0 takes 30 seconds (too slow)

Raspberry Pi 4 B pPython code basically does this: fptr = open('/dev/ttyACMwa', 'rb') ... etc ... fptr is used by AsyncReader ... etc ... on shutdown: loginf("before close") TT1 = time.time(...
William Garber's user avatar
1 vote
2 answers
538 views

Real TTY Driver installation - Moxa 5110 not able to connect /dev/ttyr01: Input/output error

trying to get my Moxa Nport 5110 to work with the RPI4. Currently Using: Raspbian GNU/Linux 10 (buster) installed moxa-real-tty-drivers-for-linux-kernel-5.x-v5.1 added some tty ports automatically (...
gue's user avatar
  • 11
0 votes
0 answers
388 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 ...
Britantyo Wicaksono's user avatar
1 vote
0 answers
348 views

Rpi4b -> Use Serial HC-12 SI4463 Transceiver to send to Generic RF outlets and 433 switches

Raspberry Pi4B Hi, I am using a 433 MHZ TX/RX kit connected via GPIO pin 27 for receive and GPIO pin 22 to send signals to my RF power outlets and receive signals from my 433mhz Wireless Magnetic Door ...
Viktor Carlson's user avatar
1 vote
1 answer
695 views

Pi Zero 2W uart configuration?

I found this answer How do I make serial work on the Raspberry Pi3 (PiZeroW, Pi4 or later models) It was very helpful to understand the uart situation on the Pi 4. But when I tried the same config ...
confused's user avatar
  • 121
-1 votes
1 answer
95 views

Pi Zero and Serial Recv

I've got a device (actually an arduino) that's sending serial data at 2400baud, 8N1. It's connected to my Pi Zero through optocouplers onto pin 8 and 10 (UART TX and UART RX). I've verified i'm ...
Stik's user avatar
  • 99
1 vote
3 answers
266 views

How to connect Arduino to Raspberry through USB-TTL (called like this in electronics shops)?

I want to connect an Arduino to Raspberry Pi through a USB-TTL converter like this one: My doubt would be about logic voltage. I know that Arduino works with 5V logic, while Raspberry Pi does with 3....
JMRMEDEV's user avatar
1 vote
1 answer
83 views

Serial data over 30meter shielded Cat5e cable in industrial environment

I'm designing an industrial solution for monitoring and controlling some large raw-material processing machines. What I want to have is an RPi Pico at each piece of equipment that can standalone ...
flamewave000's user avatar
1 vote
1 answer
186 views

Raspberry Pi Thermal Printer Flow Control DTR or XON/XOFF

I use Rpi Zero 2 and Adafruit Nano Printer (link) for Bitmap printing. I ported the C++ Adafruit Thermal Printer library (link) for my Rpi Cpp program, which was pretty straightforward, but I am ...
mqmarathon's user avatar
1 vote
1 answer
225 views

How to access remote machine terminal that is connected via USB serial?

I have a remote machine running Ubuntu that has an on-board USB serial converter. I can easily access remote's terminal by connecting via USB to Windows and running PuTTY. However, is it possible to ...
earl's user avatar
  • 111
1 vote
1 answer
1k views

Raspberry Pi Pico doesn't create tty file

I've been using Raspberry Pi Pico for some time already and I'm using minicom for serial communication. But one day Pico stopped generating tty/ATCM0 when connected to USB port. Before this everything ...
Omicron's user avatar
  • 119
0 votes
1 answer
2k views

pyserial and parity check

I am using pyserial library to deal with serial communications between my CM4 and a particular device. This are my settings: _baudrate = 9600 _parity=serial.PARITY_EVEN _stopbits=serial.STOPBITS_ONE ...
otuga's user avatar
  • 11

1
2 3 4 5
15