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!

205 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
301 views

Device drivers only working on boot

I am trying to connect some peripheral devices (test equipment) to a Raspberry Pi 4B+ running Raspbian and I am running into issues with device drivers for serial (using a pl2303 driver) and usb ...
user avatar
  • 31
3 votes
0 answers
240 views

Coin acceptor misbehave when connected on raspberry pi

I have a Bill note acceptor and a Coin acceptor, and I have wrote a program in C# to communicate with these two machines, and it worked perfectly on windows, after that I migrated this application to ...
user avatar
  • 31
3 votes
1 answer
198 views

Problem sending analog read values over serial

Ok I apologize as I have edited this quite a bit, but I have narrowed down the problem a bit more. For some reason I can't transfer values from my arduino analog pins?? I am trying to send values ...
user avatar
  • 173
3 votes
0 answers
5k views

Raspberry Pi and LIN Bus

I want to implement a LIN Bus using a Raspberry Pi 3. The RPi will be the master controlling slaves on the LIN Bus. My idea is to use the Raspberry Pi UART, but I am not sure to what extent this ...
user avatar
3 votes
0 answers
2k views

Raspberry Pi 3 Bluetooth Baud rate

How do I increase the available baud rate of the bluetooth module for the Raspberry P1 3 model B? I have tried editing the /boot/config.txt file with: init_uart_baud=1000000 init_uart_clock=16000000 ...
user avatar
  • 31
3 votes
0 answers
2k views

Serial sniffer?

I have a serial RS-232 connection from a PC's com1: port to a vendor's device. The vendor's device is going to 100% CPU utilization and the vendor claims that our software on our PC is causing that. ...
user avatar
  • 51
3 votes
0 answers
838 views

Persistent names for usb-serial devices

I am making a weather monitoring system to use Raspberry Pi 2. In weather eye, there are two sensors and two USB to serial ports. I want persistent names for USB-serial devices. I imitated this link,...
user avatar
3 votes
0 answers
287 views

Slice of Radio and Ithobox

I've got a Raspberry Pi with Ciseco Slice of Radio and I'd like to control my Ithobox LINK It has an 868 Mhz RF transmitter/receiver and I also have the optional RF remote control unit which I'll be ...
user avatar
3 votes
0 answers
1k views

How to establish network connection between Mac and Pi using serial cable?

I have managed to establish a connection from my Mac (OS X 10.9) to Raspberry Pi (Raspbian 3.6.11) using a serial USB to TTL cable by following these instructions. I can successfully establish a ...
user avatar
  • 131
2 votes
2 answers
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
2 votes
0 answers
210 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 ...
user avatar
  • 21
2 votes
1 answer
409 views

Issues running two PL2303 USB to Serial converters on a Raspberry Pi Zero W

I'm having a bit of a problem building a little network-connected UPS monitor. I have two USB to Serial adapters of the pl2303 kind. Latest Raspbian and I'm running them off a tiny powered USB hub ...
user avatar
  • 21
2 votes
0 answers
441 views

Controlling a laser rangefinder via the raspberry pi

First, a disclaimer that I am an electronics newbie. I got my hands on a laser rangefinder which looks very similar to this: On the top left corner, there are two sets of pins. The first set has ...
user avatar
  • 21
2 votes
0 answers
405 views

How to use Rpi UART to debrick a bricked LinkSys G (WRT54GL) Router?

I was working on a project that 'debricks' my bricked router(WRT54GL). Since this is my first time with Serial communication on any device, I have some questions to ask. This is the pinouts for the ...
user avatar
2 votes
0 answers
132 views

How can I reconfigure the UART on the fly?

I have a Pi Zero with Raspbian which I'd like to use as a logger device with WiFi (it's not a W, I'm using an external WiFi stick). I need the UART to communicate with a microcontroller but sometimes ...
user avatar
  • 21
2 votes
1 answer
2k views

Serial communication over USB port of Pi Zero

I want to send/receive data between PC and Pi-Zero over USB port near PWR port. I followed the instructions here https://www.tal.org/tutorials/raspberry-pi-zero-usb-serial-console But I don't enable ...
user avatar
2 votes
1 answer
3k views

SIM800 GSM Module To Raspberry Pi UART Serial Communication Problem

I am new to Raspberry Pi Zero and I want to connect it with a GSM module for GPRS connectivity. I bought the SIM800A GSM module but its LED is not even blinking one single time. I am able to turn on ...
user avatar
  • 21
2 votes
0 answers
1k views

Hardware controlled RTS on a Pi4 not working accurately

We need to use RS485 to talk to one of our custom tools. We need to use hardware controlled rts/cts. I've read so many articles about this but nobody ever says it works for them with fast timing and ...
user avatar
  • 21
2 votes
0 answers
980 views

Threading on Raspberry pi Serial Port

I have multiple Raspberry Pi(RPis) using which I have to send data (wireless,using Long Range modules connected to TX RX of RPi) on just one Rpi. All the RPis(Ones sending data) use different ...
user avatar
2 votes
0 answers
874 views

Raspberry Pi Zero W + Adafruit Thermal Printer Only printing limited number of characters

I'm trying to set up an Adafruit Thermal printer Mode: CSN-A2-T with a Raspberry Pi Zero W that is running Raspbian GNU/Linux 9.4 (which I believe is Raspbian Jessie). I need to be able to print ...
user avatar
  • 33
2 votes
0 answers
5k views

How do I test if my UART port is working? Simple example... loopback-test

I am working on a NMEA(GPS)-datalogger for a drone. I followed the tutorial from fishandwhistle and createt this script: #!/usr/bin/python3 import os, time, sys, glob, datetime, syslog, pynmea2, ...
user avatar
2 votes
0 answers
351 views

Multiple servo motors with serial commands

I am trying to control multiple servo motors with a Raspberry Pi. I am using a USB to TTL cable for this. I am currently sending following serial commands for the movement. --> gpio -g mode 18 pwm --...
user avatar
  • 21
2 votes
0 answers
10k views

Want to Read COM Port Data and Write into TKinter Text Window

Using Python3, I want to read data on a serial port and display it into a tkinter GUI text window (not only the shell). Pretend I am trying to make the equivalent of a serial port character display. ...
user avatar
2 votes
0 answers
2k views

Serial port works with minicom but not echo and cat

Please help me with this problem I have 2 x raspberri pi zero W connected together with serial port 6-6 8-10 10-8 Minicom to minicom works fine Minicom to cat works fine echo to minicom works fine ...
user avatar
  • 41
2 votes
0 answers
1k views

Can't echo to /dev/ttyUSB0

I have an arduino connected to /dev/ttyUSB0. I try to send '1' to it using echo 1 > /dev/ttyUSB0 but nothing seems to happen. However, if I do this beforehand: tail -f /dev/ttyUSB0 & and try ...
user avatar
2 votes
0 answers
417 views

Lost Serial on Pi3 running Pixel

I have just upgraded to the latest OS Raspbian Pixel and my serial connection has stopped working. I know that the hardware is configured correctly as it worked pre-update. I have updated to the ...
user avatar
2 votes
0 answers
919 views

How to use Raspberry Pi 3 inbuilt bluetooth for serial communication with PC?

I want to send data from Raspberry Pi 3 having Raspian Jessie OS. I can pair with other bluetooth devices using the Bluetooth Icon on the task bar and also using bluetoothctl. I tried to connect to a ...
user avatar
2 votes
0 answers
291 views

Struggling with Raspbian Bluetooth communication

I'm trying to perform communication between my Raspberry with a slave Bluetooth module and my laptop. The goal is to get a boot output message of my Raspberry, but that's not working as expected. The ...
user avatar
2 votes
0 answers
761 views

Compute Module Serial Interface

I am attempting to use a USB to TTL cable to create a terminal interface with a Raspberry Pi compute module on a compute module development board. I followed these instructions, but to no avail. The ...
user avatar
2 votes
0 answers
514 views

Multiple Arduino-Raspberry Pi serial

So, the question is, is the content of /dev/serial/by-id unique? Essentially the issue is I want to connect several (two or more) arduinos (potentially of different types, but they may all end up ...
user avatar
  • 121
2 votes
0 answers
4k views

Receive data from uart with Raspberry Pi mono c#

From today, after updating libraries Mono C# on my Raspberry Pi Rev 2 Type B (wheezy), the communication via serial no longer works, it seems to me very strange, because yesterday with the same ...
user avatar
  • 121
2 votes
0 answers
188 views

When connecting with GNU Screen (patched version) RPi reprompts for password in kind of loop

I have a raspberry pi (running raspian) and want to connect to it with the Console Cable. I succeeded - and I tried twice, because it had worked before, but malfunctioned the second time (this is a ...
user avatar
  • 455
1 vote
0 answers
25 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 ...
user avatar
  • 119
1 vote
0 answers
78 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
1 vote
0 answers
197 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=...
user avatar
1 vote
0 answers
163 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 ...
user avatar
1 vote
1 answer
753 views

Problem with 1-Wire devices not showing up on GPIO4

i hope you're having a nice day. For a project i want to implement 1-Wire communication in a Raspberry Pi Zero W. The goal is to use a Maxim Integrated Max17313 Fuel Gauge for inspecting battery usage....
user avatar
1 vote
0 answers
47 views

Memory leak using php with dio to read /dev/ttyAMA0

I am using my Raspberry Pi 2 (buster, php 7.4.10) to communicate with an inverter in a small solar system. All the code is functional but it tends to crash/exit after a few hours. Looking at task ...
user avatar
  • 11
1 vote
0 answers
267 views

USB device turns off - relay switch does not restart it - unplugging and re-plugging does. What is the difference?

I have a USB to serial converter which the Raspberry Pi 3B seems to turn off after a few hours. LSUSB shows it is gone, and then it can be restarted by unplugging and then re-plugging the device into ...
user avatar
1 vote
0 answers
144 views

How to run " import serial" and "import cv2" in one python file?

I am actually creating my project wherein I can control my raspberry pi in my pc using FPV Radio Telemetry. The scenario is my pc will send string data like "red" and "blue" to my pi. After my pi ...
user avatar
1 vote
0 answers
284 views

Pi4 RTS pin big delay

I am trying to use modbus with RS485 on my Pi4. I'm using modbus_tk with pySerial library, and I managed to get controllig RTS pin while transmitting data, but I cant get it running faster - when TX ...
user avatar
  • 11
1 vote
0 answers
560 views

Raspberry pi 4 model b uart is unable to write

I got some questions about uart in raspberry pi 4 model b. I used to run my program in rpi 3 model b+, but everything went wrong when I tried to do the same thing on pi 4. First of all, each time I ...
user avatar
1 vote
0 answers
370 views

RPI Serial Communication through USB

I am trying to set up serial communication between my Raspberry Pi Zero W and my PSoC. I want to do this through a normal microUSB to USB 2.0 converter cable, which looks somewhat like this picture: ...
user avatar
1 vote
0 answers
117 views

How do I connect to an Arduino Nano/Uno Serial using GPIO and a Level converter

How do I connect to a Arduino Nano for serial communication using the GPIO pins? I understand that USB is easier, and already use that for development, but I don't have room in my enclosure for a big ...
user avatar
1 vote
0 answers
129 views

RPI3b+: UART serial communication problem

I have my RPI setup to communicate serially with another board. Currently, I have a usb to serial converter which is plugged into one of the RPI ports. This works well but, I want to take that out and ...
user avatar
1 vote
0 answers
179 views

Controlling multiple arduinos from a pi 3b+

I'm working on a robotics project where we need to control 2 motors, read data from 8 ultrasonic sensors, display a 2 digit number on 7 segment displays, drive servos and a few more things. The ...
user avatar
  • 11
1 vote
0 answers
128 views

Communicating with TPI synthesizer using pyserial

I have a raspberry pi 3b+, and I am trying to communicated with a TPI synthesizer model 1001-B. I want to use Python and specifically the pyserial module to communicate with a serial port - i.e. the ...
user avatar
1 vote
0 answers
42 views

Can i transfer files between two rapberry pi's using Aux cable?

As a part of project, i have to transfer any file from one pi to another pi through Aux cable.
user avatar
1 vote
1 answer
827 views

Receive data on the raspberry with c# using mono

I want to send strings between the raspberry and a windows computer via serial and with c#. This works from the raspberry to the computer as shown below. In the picture you can see that I have sent a ...
user avatar
1 vote
0 answers
90 views

Could not read all bytes from /dev/ttyS0

I try to send some data to a module which connected via UART /dev/ttyS0, I send a standard command to module and module send me back a 13 bytes acknowledgment, but the first 5 bytes of ack not ...
user avatar

1
2 3 4 5