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
1answer
11 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
0answers
18 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
1answer
74 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
1answer
53 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
1answer
42 views

Serial Communication Between Windows and RPi Over Bluetooth

I have tried following a lot of posts online, but I could still not solve my issue. I want to instantiate serial communication between my RPi and my Windows 11 computer. Currently, I have connected ...
0
votes
1answer
37 views

most linux commands gives -bash: clear: command not found , after a binary execution (Raspberry pi)

what could be possibly wrong when following dmesg occurs in Raspberry pi Following is Output of dmesg command, [ 227.820110] mmc0: card 0001 removed [ 227.820411] Aborting journal on device ...
0
votes
1answer
31 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 ...
1
vote
1answer
198 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 ...
-1
votes
2answers
82 views

UTF-8 support on Raspberry Pi

I want to run a python program that receives the data through serial communication and saves it to a file, but after receiving the data this error shows up. Any idea? (code runs ok in Windows but in ...
2
votes
2answers
76 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 ...
1
vote
0answers
45 views

What is the minimum I2C baudrate and pullup resistance for the Raspberry PI 4

The baudrate for the RPI can definitely be set in the range of 100-400kHz by editing the /boot/config.txt: dtparam=i2c_arm=on dtparam=i2c=on dtparam=i2c_baudrate=10000 Following this tutorial. But I ...
0
votes
0answers
30 views

RPi Zero W Python Threading.Timer Problem in crontab

t = threading.Timer(20, function=callback_func, args=[]) t.start() The above code is designed to call the callback function after 20 seconds and the callback function sets a global variable. This ...
0
votes
0answers
19 views

How I can configure the pins for the linux's kernel mx35lfxge4ab driver, so I can use the pins offered by rpi?

As I can see linux kernel has a driver for mx35lfxge4ab Flash NAND SPI chip: https://github.com/torvalds/linux/blob/master/drivers/mtd/nand/spi/macronix.c Furthermore, I have a device that also uses ...
0
votes
1answer
20 views

How I can use GPIO ports for raw serial and clock?

I want to read some data out from a macronix MX35LF1GE4AB flash memory chip, but it uses RAW serial and does not mention some for of existing serial comminications (eg. UART, I^2C etc etc). The chip's ...
1
vote
3answers
52 views

UART data collection and logging taking too much time

So, I am sending data to RP1 B+ model through UART from a microcontroller. I am using minicom to collect data and log it in a .txt file. I am sending around ~800 kB of data and using a baud rate of 1....
-1
votes
1answer
29 views

Show data from USB to eink bonnet [closed]

So I have a RPI with a adafruit 2.13 eink bonnet installed onto my GPIO pins. Then I have a gearmo USB-RS232 serial converter plugged into my USB port then the RS232 connection is on a GPS receiver. I ...
0
votes
0answers
39 views

C# .NET Core application cannot open serial port

I'm running a .NET Core application on Raspberry Pi OS (32-bit Debian). pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux&...
0
votes
1answer
44 views

Redirecting serial port

I have a Raspberry Pi for which I wrote a program that reads and writes to the GPIO serial port (/dev/ttyS0) I need to run a set of unit tests on the device, sending several commands and reading what ...
0
votes
0answers
42 views

How to send a string from RaspberryPi to Arduino via serial interface?

I want my HomeAssistant being able to send out RF433. HomeAssistant is hosted on RaspberryPi while the RF433-module is on ArduinoNano. I am referencing this article with some modification. How to send ...
0
votes
1answer
35 views

Raspberry Pi 4 b+ with SIM900A Module Error

I'm working on a project that includes send a SMS message. I have tried connecting my raspberry pi with sim900a. Having problems with communication with sim. I've tried using AT commands with minicom ...
0
votes
0answers
38 views

RS485 Thermometer reading with python

The idea of the project is to get the data from the RS485 devices and write it for visualisation later. I have raspberry pi 4 with 4GB RAM with this hat and this sensor. I'm not sure how should I send ...
0
votes
2answers
89 views

Sensor gives different results using GPIO and USB

I have a RPi4B, MH-Z19C CO2 sensor and a UART to USB adapter. When I connect to the sensor using USB I get stable readings: {'co2': 1001, 'temp': 19, 'S': 0, 'U': 0} {'co2': 1006, 'temp': 19, 'S': 0, '...
1
vote
1answer
60 views

unable to gps data serially in raspi 4

I am trying to get ublox zed f9p module work with raspi 4. I am using this module I am running on ubuntu 20.04 desktop version on raspi 4 and i have connected the module serially(/dev/ttyS0) to my ...
0
votes
1answer
24 views

How resumes reading from USB virtual com after client reset?

I have dotnet-core app on raspberry pi 4, which reading data from USB serial port (virtual com) from STM-Microcontroller board. When I reset the STM-board, the pi stop receiving data ! How can I ...
1
vote
1answer
78 views

How to enable serial communication on Rasbpian Buster or the lastest OS right out of the BOX?

Latest Raspbian Buster OS and Raspberry Pi 3 V1.2 2015 This I can't get my head around this. Why can't I set up serial communication on Raspbian Buster for Raspberry Pi3 very easily after following ...
1
vote
1answer
376 views

How do I initialize the tinyusb submodule in my pico-sdk checkout?

I'm having a problem with the Raspberry Pi Pico hello world example using the C/C++ SDK on Ubuntu. When I drag and drop the hello_usb.uf2 binary the USB drive connection to the Pico terminates as ...
0
votes
0answers
11 views

barcode scanner in a disabled state after reboot

My barcode scanner is configured as a USB serial device. it shows up as ACM0 I believe. It works fine with my python program. THen after a hard reboot, the scanner seems to be in a different state, ...
0
votes
0answers
26 views

Raspberry Pi Zero W not interacting with GSM HAT

I have Raspberry Pi Zero W and this hat. I did the following things: disabled login shell through serial in rasp-config enabled serial port hardware in rasp-config removed console=serial0 in /boot/...
-1
votes
1answer
31 views

Problem with Pyserial when using Xbee and GPS on rasp pi 3B+

i am currently trying to get some data from gps and try to send it through Xbee to a pc. To do this, i was using multiprocessing. At first getting the GPS data and sending data through Xbee was done ...
0
votes
0answers
44 views

How Install Ubuntu 21.04 (Desktop) on Raspberry Pi 4 using Serial Console? [duplicate]

Hello how can I install ubuntu desktop 21.04 on raspberry pi 4 using serial console? I want to use the Raspberry Pi 4 UART pins to communicate using TTL to USB convert device to my windows 10 OS using ...
0
votes
0answers
118 views

Serial RS232 Raspberry FTDI chip USB to RS232

Circumstances I am running my Raspberry Pi 3 Model B+ with Raspberry Pi OS. I use a FTDI chip serial cable adapter USB to RS232. https://www.amazon.com.mx/gp/product/B081PP3ZM4/ref=...
0
votes
0answers
34 views

UART communication between Rhino DC servo motor and RPi4 B

I want to communicate with this Rhino DC servo motor with RPi4 B. I enable uart3 in RPi4 by modifying the /boot/config.txt file. In this file, I add dtoverlay=uart3 in the last. When I used ls /dev/...
0
votes
0answers
291 views

Unable to import pyserial or serial in python 3.4.2

I am not able to import pyserial or serial module in a python script. Package is properly installed (I think) using the following commands: sudo apt-get install python3-serial pip3 install pyserial --...
1
vote
1answer
234 views

Serial port fails after some time

I use a RPi 3b to request and receive float values over serial from an Arduino Nano (fake). For that I use python and pyserial. Arduino Loop: if (Serial.available() > 0) { String req = Serial....
0
votes
0answers
49 views

serial1 does not exist in /dev

I have successfully managed to connect and read NMEA strings from a GPS antenna using serial0/ttyAMA0 but I am confused, why does /dev/ttyS0 not exist? I am using the Raspberry Pi Compute Module 3+ ...
0
votes
1answer
121 views

Slow UART communication between Raspberry Pi Zero and 4B using pyserial

I'm testing serial communication between two Pi's (Zero -> Pi 4) with Python pyserial library. I am using Zero as camera with preprocessing and sending preprocessed data to Pi 4 via UART (/dev/...
0
votes
0answers
122 views

Raspberry Pi 4 with latest raspbian buster serial gpio not working

I'm trying to use the GPIO TX and RX on RPi 4 with the latest raspbian. What I did to test is: Installed latest raspbian buster. Run update, upgrade and firmware upgrade. Edited raspi-config to ...
0
votes
1answer
236 views

Rpi zero w is not recognized as com port

When I connect my Rpi zero w to my PC (windows 10 via usb cable, I cannot see it under com port devices of PC. I am connecting micro usb side to the socket labeled as USB on Rpi. I want to establish a ...
0
votes
0answers
72 views

RS-485: UART configuration for 10 Mbit/s

I would like to use an RS-485 transceiver (e.g. SN65176BD) with my Raspberry Pi 3, to communicate on a network operating at 10 Mbit/s (a common speed for RS-485 networks). Using an unmodified ...
0
votes
1answer
40 views

Python - how to make non blocking terminal where every one second serial link sends packet [closed]

I can write this in C#, but now i learning python and I don´t know how program this. I want to make simple terminal where serial link sending every one second packet... In non-blocking way. In C# I ...
0
votes
1answer
34 views

Python - How to automaticly open first available serial port (COM/tty) [closed]

I am new at Python and I want to learn serial communication between Raspberry and other devices like PC, arduino, sensors... I often plug and unplug devices like arduino, FTDI, etc. to COM port... I ...
1
vote
1answer
79 views

How to connect multiple sensors to TXD and RXD pins of Raspberry Pi?

I want to connect multiple lidar distance sensors to my Raspberry Pi. (Like the picture below) The lidar distance measurement sensor has 5v, TXD, RXD and GND pins. When I looked, it seemed that the ...
0
votes
1answer
838 views

Raspberry pi pico modbusRTU communication as master with slave computer using micropython

I am working on a slave computer and want to save the data transmitted from the master raspberry pi pico. In micropython there is modbus library github link. I want to use this library but there is a ...
1
vote
0answers
122 views

Bluetooth device connection lost after a second

With the Raspberry Pi 3B i was able to succesfully pair and connect a Barcodescanner (OPN2006). For this, I used the following code: pi@raspberrypi:~ $ bluetoothctl Agent registered [bluetooth]# power ...
0
votes
1answer
431 views

Read binary data from serial port and save in file

I am link modem to pi3 via serial port and configure this port . When i receive data in my python software from serial port and save bytes in file, i note i receive too mutch data , I am receiving ...
2
votes
0answers
124 views

pySerial - UART - Determining when a message has actually been sent (callbacks?) (RTS/CTS hacking?)

For reasons (explained at the end of the post) I need to have a pin change state immediately as the UART finishes outputting a set of bytes. I'm using pyserial & pigpiod on a RPi3B+ and bluetooth ...
2
votes
1answer
229 views

I2C baudrate in Raspberry Pi, depends on arm core frequency

I'm using a Raspberry Pi 3, with a Raspberry Pi OS (arm64) official image to communicate with a PMBus compatible device (rpb1600-48 battery charger). I was experiencing communication problems. ...
0
votes
2answers
266 views

Reading from /dev/serial0 using cat quits working after reading with python program

Using 2020-12-02-raspios-buster-armhf-lite I have a GPS that outputs TTL connected to the UART pins (pins 4, 6, 8, 10) with serial login disabled. After first booting up I can see output from the GPS ...
0
votes
0answers
32 views

Serial communicaction problems between Raspberry Pi and Arduino

I am carrying out a project in which I transfer information between an Arduino Mega and two Raspberry Pi 3 Model B. On the first Raspberry there is running a console program that is connected to the ...
0
votes
0answers
43 views

Raspberry pi 4 B not reading properly serial port (missing data)

Raspberry Pi 4 B is executing a java code working with the pi4j library in order to write and read information from the Serial Port. It writes correctly but when reading, the information is ...

1
2 3 4 5
14