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
11 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
16 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
24 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
62 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
45 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
35 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
38 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
14 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
24 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
32 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
99 views

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
536 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,053
0 votes
0 answers
9 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
0 votes
1 answer
40 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
100 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
48 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
1k 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
74 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
216 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
357 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
464 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
168 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
457 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
148 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
283 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
732 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
84 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
419 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
347 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
294 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
498 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
84 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
204 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
74 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
170 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
199 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
2 votes
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
  • 121
0 votes
1 answer
1k 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
0 votes
1 answer
172 views

Seeking help with my python loop - a basic MAX7219 8 Digit Seven Segment Display Module driver for a Pico W

I am trying to send serial data to a MAX7219 8 Digit Seven Segment Display Module from a Pico W. I can blank the display or make every last LED light up but nothing else. I cannot currently see what I ...
Matthew Brown aka Lord Matt's user avatar
0 votes
1 answer
937 views

monitoring two serial ports simultaneously

For my project I need two serial ports and I need to monitor both and act accordingly. Example of what I need to do: Port A and Port B Monitor all the time Port A and when message is received, I need ...
otuga's user avatar
  • 11
-1 votes
1 answer
181 views

Program to test i2c communication with serial prints breaks RP pico

Background: I am trying to test the communication of 2 raspberry pi pico using i2c. Firstly, i sent a string from one and receive it from the second one. Both of them print the results in the serial ...
MIKE PAPADAKIS's user avatar
-1 votes
1 answer
53 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 ...
mr.xed's user avatar
  • 21
1 vote
1 answer
1k views

PN532 with Raspberry Pi Pico

I have PN532 NFC Module that looks like this I am trying to connect this NFC Module with Pico, but I have no luck in finding library that allows me this. What can I do to control it? Can you ...
M.Simel's user avatar
  • 23
0 votes
1 answer
500 views

serial0 owned by root, changes back to after reboot

trying to follow some tutorials about accessing serial ports, I kept getting a permission denied error for /dev/serial0, and the common solution seemed to be to add the user to the dialout group... ...
dangelsaurus's user avatar
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 ...
praetorianer777's user avatar
0 votes
1 answer
108 views

Pass serial port readings on RPi to remote for automated testing

The objective of my current RaspberryPi test setup is to read from/write to hardware, and constantly monitor the state/log message stream for test scenarios. The testing code runs on the RPi, and ...
m4ng0o's user avatar
  • 9
1 vote
0 answers
172 views

Serial port vs USB serial adapter timing issues

I'm working on some code that communicates via RS-485/MODBUS RTU with some devices. Depending on my development needs, sometimes I use a USB-RS485 adapter, other times I use an RS-485 HAT that's ...
Rick's user avatar
  • 139
1 vote
3 answers
757 views

can raspi zero 2 w be usb host on micro usb plug and on console cable on TX/RX at same time?

I want to run weewx on a raspi zero 2 w. I want an RTL-SDR radio dongle and an arduino uno to communicate with the raspi02w over two usb connections. If I replaced the raspi zero 2 w with a raspi 4 ...
William Garber's user avatar
0 votes
0 answers
2k 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 ...
whats_a_computer's user avatar
0 votes
0 answers
2k views

Attribute: 'ModbusIOException' object has no attribute 'registers'

I try to follow exactly this video https://www.youtube.com/watch?v=ZlHqEOmvW6M You can have a look what I do : https://drive.google.com/file/d/1LenDiJVxT8wQUOlMbdDZ_VkIzqLvHmLJ/view?usp=sharing I will ...
Bảo Duy's user avatar

1
2 3 4 5
15