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
20 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 ...
user avatar
0 votes
0 answers
14 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 ...
user avatar
0 votes
1 answer
28 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-...
user avatar
  • 261
0 votes
0 answers
27 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 ...
user avatar
1 vote
1 answer
41 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). ...
user avatar
0 votes
0 answers
39 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 ...
user avatar
0 votes
1 answer
44 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 ...
user avatar
0 votes
0 answers
15 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/...
user avatar
0 votes
0 answers
58 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 (...
user avatar
0 votes
1 answer
34 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 ...
user avatar
  • 26
1 vote
1 answer
277 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 ...
user avatar
0 votes
0 answers
38 views

Conflict between UART and cv2 Video Capture

I am attempting to communicate with an Arduino through UART using an Raspberry Pi 4 Model B. The Python script is grabbing frames from a Raspberry Pi Camera Module v2, pre-processes them and checks if ...
user avatar
0 votes
0 answers
110 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 ...
user avatar
0 votes
0 answers
23 views

Can I2C speed of raspberry pi 4 be set on the fly in python

Can I2C speed of raspberry pi 4 be set on the fly in python? The standard way of doing it would be sudo nano /boot/config.txt and add the corresponding line. However, I would prefer a faster solution.
user avatar
0 votes
0 answers
43 views

AT Commands not working with SIM7600CE

When connected the SIM7600CE module to the Rpi, the Rpi detects it, we can also see an IP address assigned for it and it is listed in the list of USB devices but if I try to give AT commands it doesn'...
user avatar
0 votes
0 answers
43 views

SIM800L EVB V2.0 GSM Module does not have audio input / output pins

I recently bought this GSM Module and so far everything works fine, i can communicate with it from my raspberry pi via the serial pins (send SMS, make calls etc.). The only problem I have is that I ...
user avatar
0 votes
0 answers
99 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 ...
user avatar
0 votes
0 answers
25 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-...
user avatar
0 votes
1 answer
49 views

Can arduino open and play video files off of raspberry Pi with serial communication?

I just want to know if it is even possible to have serial communication from arduino mega to raspberry pi3 , to open and play a specific video file stored on the Pi?
user avatar
  • 1
0 votes
0 answers
77 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 ...
user avatar
1 vote
1 answer
53 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 ...
user avatar
  • 113
0 votes
1 answer
98 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 ...
user avatar
0 votes
0 answers
44 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 ...
user avatar
-2 votes
1 answer
183 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 ...
user avatar
  • 482
0 votes
2 answers
578 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 ...
user avatar
  • 482
0 votes
1 answer
160 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 ...
user avatar
  • 119
0 votes
1 answer
81 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 ...
user avatar
0 votes
1 answer
95 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 ...
user avatar
  • 482
1 vote
1 answer
1k 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 ...
user avatar
  • 123
-1 votes
2 answers
264 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 ...
user avatar
  • 35
2 votes
2 answers
451 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 ...
user avatar
1 vote
0 answers
70 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 ...
user avatar
0 votes
0 answers
60 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 ...
user avatar
0 votes
0 answers
21 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 ...
user avatar
0 votes
1 answer
23 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 ...
user avatar
1 vote
3 answers
89 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....
user avatar
-1 votes
1 answer
45 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 ...
user avatar
0 votes
0 answers
129 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&...
user avatar
  • 155
0 votes
1 answer
121 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 ...
user avatar
0 votes
0 answers
56 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 ...
user avatar
0 votes
1 answer
145 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 ...
user avatar
0 votes
0 answers
96 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 ...
user avatar
  • 101
0 votes
2 answers
109 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, '...
user avatar
  • 119
1 vote
1 answer
180 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 ...
user avatar
0 votes
1 answer
25 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 ...
user avatar
  • 3
1 vote
1 answer
125 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 ...
user avatar
  • 1,022
1 vote
1 answer
1k 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 ...
user avatar
0 votes
0 answers
14 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, ...
user avatar
0 votes
0 answers
45 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/...
user avatar
-1 votes
1 answer
32 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 ...
user avatar

1
2 3 4 5
14