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!

150 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
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 ...
3
votes
0answers
281 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 ...
3
votes
0answers
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 ...
2
votes
0answers
66 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 ...
2
votes
2answers
203 views

Raspberry Pi Zero W solar power setup

Good day, I have a Raspberry Pi Zero W that I would like to deploy onto a tower that is supplied with 12VDC power from a photovoltaic solar panel. I'm currently looking at powering the Pi Zero W ...
2
votes
0answers
114 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 ...
2
votes
0answers
38 views

DS18B20 reading double after long use

I installed two DS18B20s on a pi almost a year ago. They have worked great until the last couple months. I am doing a bit of a stress test on them and have been polling them every second for almost a ...
2
votes
2answers
484 views

How to send bytes to dmx using python

I have a headlight connected to my rpi with dmx cable and a RS422 / RS485 Serial HAT shield (https://www.hwhardsoft.de/english/projects/rs485-shield/). According to the instructions it should be using ...
2
votes
0answers
2k 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 ...
2
votes
0answers
305 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 --...
2
votes
0answers
6k 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. ...
2
votes
1answer
710 views

UART pins not reading sensor output RPI3

This is my first pi project so im a bit new at this. Im trying to connect a senseair K-30 CO2 sensor to the pi via the UART gpio pins. This is the sensor I am using: https://www.co2meter.com/products/...
2
votes
0answers
828 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 ...
2
votes
0answers
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 ...
2
votes
0answers
388 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 ...
2
votes
0answers
883 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 ...
2
votes
0answers
1k 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. ...
2
votes
0answers
286 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 ...
2
votes
0answers
734 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,...
2
votes
0answers
681 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 ...
2
votes
2answers
3k views

Python Serial library for RaspberryPi2 tutorial/command list

I have a problem with using the UART on RPi2. I tried every program found on the internet but nothing works. I checked every baud rate of my two BT modules but whatever code I use I've got errors ...
2
votes
0answers
489 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 ...
2
votes
0answers
3k 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 ...
2
votes
0answers
183 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 ...
2
votes
1answer
161 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 ...
1
vote
0answers
20 views

How can I view networking interface logs over UART?

I have created a (needlessly complicated) networking setup that I tried to create by following this guide. I have colosally screwed up and now my RPi will disconnect randomly and requires a reboot to ...
1
vote
0answers
23 views

New to Pi I need to connect a device via serial communication, how do I teach myself?

I've been asked to connect and control a finger-sensing device to a Raspberry PI. There is a protocol to respect called OSDP. It supposes a serial connection on top of RS485. I'm a seasoned C/C++ ...
1
vote
0answers
39 views

USB Serial Set Up (Magnetic Card Reader)

I recently bought a USB magnetic card reader (MSR 100) I'm not sure how much documentation is out there, but I've found that it works serial over USB. However, I'm having some trouble setting it up on ...
1
vote
0answers
81 views

Use OBDII over WiFi

I think i've tried everything at this point, and nothing seems to work. I'm using an ELM327 WiFi Dongle, connected it to the Pi, created a socat using: sudo socat pty,link=/dev/ttyUSB0,waitslave tcp:...
1
vote
0answers
85 views

Issues with the IOT Bit 4G hat

I would like to have some internet connection everywhere with my Raspberry Pi. To do so I bought the IOT Bit 4G hat for the rasoberry Pi ( https://www.mouser.be/new/altitude-technology/altitude-tech-...
1
vote
1answer
139 views

Serial commands over Ethernet RPi 3b

I am trying to send LinBus protocol serial commands over the ethernet port of my Raspberry pi to a linear actuator connected on the other end via ethernet. Currently, I am using pyserial script to ...
1
vote
1answer
55 views

Serial comms to Arduino unexpcted behaviour

R Pi 3 B+, Arduino Mega 2650 I am trying to send motor control instructions via user input from the Pi to the Mega. Pi side code... import serial port = "/dev/ttyACM0" rate = 9600 s1 = serial....
1
vote
0answers
43 views

Do Rpi3 UART devices inherit their device ID from the on-board UART0 controller (GPIO pins 8 & 10)?

I am working on a device prototype which reads load cell data to an Arduino which sends the load cell data via (hardware, not USB) Serial to the Rpi3 running Win10 IoT. The communication link ...
1
vote
0answers
82 views

Communication from Raspberry Pi 3B to Pi zero 1.3 via USB

I have a Raspberry Pi 3B that I need to use to communicate to a Pi Zero 1.3. I am able to SSH into the Pi 3B from my computer via ethernet. I can also SSH into the Pi Zero from my computer via USB. ...
1
vote
0answers
62 views

Adafruit Ultimate GPS with Rpi 3 “Permission Denied”

I am trying to connect an Adafruit Ultimate GPS to my Raspberry Pi 3 and read data from it using the WiringPi Serial library. I have set the serial connection up and removed the serial console through ...
1
vote
0answers
90 views

bcm2835-aux-uart 3f215040.serial: unable to register 8250 port - -28

I've compiled LFS for my RPi3B. I've put BCM43430A1.hcd, brcmfmac43430-sdio.bin and brcmfmac43430-sdio.txt in /lib/firmware/brcm/. Copied /usr/src/linux/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b....
1
vote
0answers
73 views

C# “/dev/ttyGS0” throws error “Invalid Argument”

I'm working on an application for my pi in C# code. The overall idea is to create a usb "pc status" monitor that I can put inside my PC case. My code that runs on the pi uses a ini file for settings. ...
1
vote
1answer
421 views

pymodbus on Raspberry Pi 3B and Energy Meter

Followed this thread on enabling the serial console on the Raspberry Pi 3B. Checked the functionality using this code: dmesg | grep tty Which produced these results: ... console [tty1] enabled ......
1
vote
3answers
3k views

Serial to USB, no ttyUSB0

I'm trying to open a Serial communication between a Raspberry Pi 3 (model B, running on Raspbian) and a device (a traffic counter to be precise). I've a USB to Serial cable, using the rs232 standard. ...
1
vote
0answers
205 views

rfcomm service not working for Bluetooth over serial

I'm trying to connect with a terminal to my Raspberry Pi over Bluetooth, however with my current configuration (which is what I have found in numerous places online) when any device pairs and connects ...
1
vote
0answers
210 views

Setting up a serial connection via bluetooth

I have a GSM HAT module which I am trying to use as a remote sms receiver, which my RPI will connect to using bluetooth. The problem I am facing is setting up a serial connection via bluetooth. Out ...
1
vote
0answers
36 views

USB Dongle not working if it's connected by default to my Raspberry Pi

I have a USB Dongle That I communicate with it using UART commands. So if I connect my dongle after starting the system I can send commands and I'm able to receive info, But if I leave the dongle ...
1
vote
0answers
24 views

How to stop yellow and grey boxes on serial console during boot?

I have a Raspberry Pi Zero W running Raspian Stretch. When it boots, it prints grey and yellow square characters to the serial console before displaying "Last login ..." and the login prompt. I ...
1
vote
2answers
1k views

Raspberry pi 3 reading serial port

I have a python code that reads the serial port of the raspberry pi 3to obtain GPS positions from a fona808. The code works for some time and then throws this error. Traceback (most recent call last):...
1
vote
0answers
394 views

Connect multiple sensors on a single USB to RS485 adapter

On tindie I bought a RS485 soil moisture sensor with a USB to RS485 dongle. I want to add more sensors for monotorring multiple plants. Since RS485 is a bus system, it seems basically possible to ...
1
vote
0answers
1k views

Can't Login to Pi0 console from Pi3 B+ via UART Serial USB-TTY Adapter

I am new to RPi's so bear with me please: I am trying to log in to the Pi0 console via sudo screen /dev/ttyUSB0 115200 but I just get a blank screen. Ouput of dmesg | grep tty: [ 0.000000] ...
1
vote
0answers
652 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 ...
1
vote
0answers
68 views

How to use AT over uart and ppp0 over ttyS0 at same time

I have a cellular data card that connects through ttyS0. I can talk to it via Putty using AT commands, or from Python using /dev/ttyS0. When I enable a ppp0 interface over ttyS0 to communicate with ...
1
vote
0answers
2k 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, ...
1
vote
0answers
320 views

Raspberry Pi won't send data through serial port

I have simple app in python that should send data through serial port (serial0/ttyS0): import RPi.GPIO as io import time import serial import array io.setmode(io.BCM) ser = serial.Serial(port="/dev/...