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
1 vote
1 answer
25 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 ...
1 vote
0 answers
30 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 ...
  • 11
1 vote
0 answers
19 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 ...
  • 11
1 vote
1 answer
24 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
47 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 ...
3 votes
1 answer
83 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 ...
  • 133
0 votes
1 answer
70 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
2 answers
49 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(...
1 vote
1 answer
103 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 (...
  • 11
0 votes
0 answers
110 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 ...
1 vote
0 answers
53 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 ...
2 votes
1 answer
108 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 ...
  • 123
-1 votes
1 answer
37 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 ...
  • 99
0 votes
3 answers
53 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....
0 votes
0 answers
27 views

ttyS0 Serial Connection has seemingly stopped working on Pi 3b+

I have a python script that uses LoRa to communicate with an Arduino. I'm using the serial library to make a Serial Object on ttyS0 and running everything at a baudrate of 9600. This was working ...
1 vote
1 answer
55 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 ...
1 vote
1 answer
94 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 ...
1 vote
1 answer
35 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 ...
  • 111
2 votes
1 answer
375 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 ...
  • 121
0 votes
1 answer
276 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 ...
  • 11
0 votes
1 answer
95 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 ...
0 votes
1 answer
407 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 ...
  • 11
0 votes
1 answer
71 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 ...
-1 votes
1 answer
38 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 ...
  • 21
1 vote
0 answers
531 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 ...
  • 23
0 votes
1 answer
112 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... ...
  • 101
1 vote
2 answers
462 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 ...
0 votes
1 answer
64 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 ...
  • 9
1 vote
0 answers
81 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 ...
  • 139
1 vote
3 answers
104 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 ...
0 votes
0 answers
752 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
0 answers
693 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 ...
0 votes
1 answer
581 views

Prolific Technology pl2303: unknown device type

I am trying to connect a Prolific pl2303 to my raspberry pi 4 running raspberry pi os 64 bit. When I look at dmesg I get the following output: [ 31.714397] cam-dummy-reg: disabling [ 44.046197] usb 1-...
  • 271
0 votes
0 answers
317 views

Bluetooth serial connection between Pi and MacOS Monterey on M1 Macbook both with builtin bluetooth

How do I connect a Raspberry Pi 4 Model B Rev 1 to an M1 Macbook Pro 16" using rfcomm over a Bluetooth connection? I'm able to connect the devices via Bluetooth but then not over the Bluetooth ...
1 vote
1 answer
161 views

Decoding RS-232 via UART

Context: I'm trying to read a simple sensor that uses RS232 protocol to send data. The sensor is a maxbotix US distance sensor (https://www.maxbotix.com/documents/HRXL-MaxSonar-WR_Datasheet.pdf). ...
0 votes
0 answers
101 views

C programming - Cannot open /dev/ttyS0 in blocking mode

I am trying to open /dev/ttyS0 in order to write over serial GPIO pin 8. I am using the Raspberry Pi Zero W and noted something strange. When I try to open dev/ttyS0 in nonblocking mode, I am able to ...
0 votes
1 answer
466 views

raspberry pi pico to pc communication

I have a raspberry pi pico and want it to execute files on my windows pc(for example: if I press a button it opens a file). Because I am new to microcontrollers I have no idea how to do this. there is ...
0 votes
0 answers
52 views

Raspberry pi 4, data received from UART different from USB serial

I'm new to Raspberry pi. I writing a program that send/receive data from serial. Everything works fine with the USB to RS232 cable, but now I'm testing with the UART pins to RS232, and the data sent/...
0 votes
0 answers
897 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 (...
0 votes
1 answer
121 views

AT- serial port communication with USB modem breaks ([Errno 32] Broken pipe) after upgrading to Stretch or Buster

Good day, I hope you guys are good. My name is Francis From Nigeria. I have been using raspberry for a while. I had to upgrade from Jessie to Stretch because my favorite raspberry pi 3B model is ...
  • 26
1 vote
1 answer
1k views

Accessing Raspberry Pi Pico REPL from Android Serial USB Terminal App with main.py present

I discovered that I can plug a Raspberry Pi Pico into my Android phone and use the app 'Serial USB Terminal' as a serial monitor. However, if the Pico has a main.py script uploaded to it, then it ...
1 vote
1 answer
431 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 ...
0 votes
0 answers
411 views

raspberrypi kernel: [14247.511414] mmc0: timeout waiting for hardware interrupt

Setup = Rpi > USB HUB > USB TTL adapter/cable > 2 LTE modules. Protocol = AT Commands. Problem = mmc0: timeout waiting for hardware interrupt. Question = Any investigation method and ...
0 votes
0 answers
45 views

Is the serial device connected well?

I'm using rapberry 3 B+. and Connect to a serial to usb device. The following is dmesg after connection. [ 5021.125504] usb 1-1.2: new full-speed USB device number 6 using dwc_otg [ 5021.272788] usb 1-...
-1 votes
1 answer
68 views

Can an Arduino open and play video files off a Raspberry Pi with serial communication?

I just want to know if it is even possible to have serial communication from an Arduino Mega to Raspberry Pi 3, to open and play a specific video file stored on the Pi?
  • 1
0 votes
0 answers
219 views

GPS Data from cat /dev/ttyS0 is not correct

I am attempting to use a Garmin 18x LVC GPS module. I have it connected to the serial RX and TX pins on my Raspberry Pi Zero W, and port name is /dev/ttyS0 on the pi. By using a multimeter and Linux ...
1 vote
1 answer
133 views

How to set the SPI comms delay from CS to SCLK?

I am using a Raspberry Pi to communicate with a SPI-enabled device over the 40-pin cable. To the best of my understanding, the Python scripts rely on the SpiDev device. The script uses the xfer3() API ...
  • 113
1 vote
1 answer
270 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
119 views

unable to use serial on CM4 using linux

When i am trying to connect to my CM4 via serial on my linux desktop and i am unable to get any output from screen i have ensured that enable_uart=1 is in my config.txt file for clarafaction i am ...
-2 votes
1 answer
510 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 ...
  • 502

1
2 3 4 5
15