Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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!

1
vote
0answers
25 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. ...
2
votes
1answer
37 views

How can I make a VT420 terminal on a CH341-based USB-to-serial dongle work?

Situation: I'd like to use my age-old VT420 console on my Pi 3B. As the UART is already occupied, I plugged a USB-to-serial dongle with CH341 chip (lsusb told me that) into one of the USB ports on the ...
0
votes
1answer
66 views

Could not open port /dev/ttyS0: Errno 13: Permission denied: '/dev/ttyS0'

I am getting this error whenever I am trying to run this code: import serial from time import sleep ser = serial.Serial ("/dev/ttyS0", 9600) #Open port with baud rate while True: ...
-1
votes
0answers
29 views

Serial communication doesn't work RPI--ARDUINO uart

i want to use serial communication to send data from an arduino nano to a raspberry zero w, the pi uses Kivy-os but that wouldn't matter. I used this code import serial port = serial.Serial("/dev/...
1
vote
0answers
23 views

RPI serial input from RS232 via MAX232 to Node-Red [closed]

I use Node-Red to monitor serial RS232 data from a home automation box. All works fine for a couple of weeks and then the data is no longer seen. I have to reset the RPI to recover from this. I have ...
0
votes
1answer
43 views

send data from a virtual serial port to a tcp server

I want to send data from my PI (that doesn't have a serial port) to a serial device. now for this I understadn I need to create a virtual port on the pi and send the data from it in windows I use ...
-1
votes
0answers
45 views

pymodbus error: [Input/Output] No response received from the remote unit/Unable to decode response

I've been having connection errors on my Raspberry Pi 3B using pymodbus. Designed a board using MAX14854G as the RS-485 transceiver that is connected to the RPI3's UART pins (8 & 10). Currently ...
0
votes
1answer
77 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 ......
0
votes
1answer
42 views

pigpio library serial_wave confusion

I am trying to use joan's pigpio for python to try to write a command from a rpi3 GPIO pin to a peripheral device. the peripheral device uses UART and when it receives a data packet it will then ...
0
votes
0answers
17 views

How many usb-rs485 dongles can I use before there's too many for my device (raspberry pi) to handle?

I'm using 8 Usb to rs485 dongles, each dongle talking to about 4 serial devices. I'm planning on each irq completing quickly and passing the actual work off to a queue. Is this a bad design? would one ...
1
vote
3answers
125 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. ...
0
votes
1answer
62 views

pigpio python serial wave output not correct

I am trying to use joan's pigpio to write a serial command on my Rpi 3 gpio 14(UART0TX).My goal is to write a command from the pi to another device. When i send the command i do not see the ...
1
vote
1answer
58 views

Weird output on python IDE terminal

I am trying to get my Pi 3 communicated with arduino but am getting output which i can't understand. My arduino code: char dataString[50] = {0}; int a =0; void setup() { Serial.begin(9600); ...
0
votes
2answers
133 views

Raspberry Pi - Connect and power RS485 device

I am trying to connect a Raspberry Pi to a OSDP card reader. The reader communicates via RS485, and is powered by 9-27V DC. Unfortunately, I have not been able to succeed with a serial connection in ...
0
votes
1answer
138 views

How to connect GSM module to Raspberry PI3 and also using Bluetooth of Raspberry PI3

I want to use Bluetooth of Raspberry Pi3 and also I want to Connect GSM module sim800l to Raspberry Pi3 ,in this instruction Bluetooth will be disable , what is the the best way to use both of them? ...
0
votes
0answers
22 views

What to use as device path for sysfs binding ttyS0 to custom kernel module?

I'm currently trying to bind a custom kernel module to ttyS0 of my Raspberry Pi Zero WH. With raspi-config I set the Interface Options for Serial to The serial login shell is disabled The serial ...
1
vote
1answer
98 views

UART RX stops reading data after working correctly

I'm trying to read an continuous stream of data from my device (laser altimeter). The device is connected to the UART Rx pin of raspberry Pi 3B+. Everything works fine with this python code: import ...
0
votes
0answers
16 views

Receive data in Raspberry Pi 3 from Windows Embedded PC

I want to know what would be the best way to connect the Raspberry Pi 3, without using Ethernet, Wi-Fi, Bluetooth or RS-232, to receive data from a program in the PC. Can I do a USB to USB connection, ...
0
votes
1answer
37 views

Why Raspbian jessie version 8 won't allow communication through GPIO serial pins?

I am running Raspbian Jessie 8 on Raspberry 3 and I followed the answer to the question Why my program won't communicate through ttyAMA0 on Raspbian(jessie)? But I still can't get my program to ...
0
votes
1answer
34 views

Multiple TTL sensors on serial RX GPIO 10

Is it possible to read more than one TTL sensor on serial RX GPIO 10? I know you can add multiple serial sensors on /dev/ttyUSBx Does the same apply to /dev/ttyAMAx ?
1
vote
1answer
80 views

Mono can't see serial port

I followed the instructions here to disable Bluetooth so that /dev/ttyAMA0 is available, which it is. I wrote a small Python script to open /dev/ttyAMA0 and send some random data, and I could receive ...
0
votes
0answers
48 views

Issue with running python script at start

Im currently running a python script at boot up using the rc.local method. it works great when i have my mouse, keyboard and monitor connected. However, the end goal of this project is to be able to ...
-1
votes
1answer
55 views

Multiple raspberry pi GPS interfacing

I have a raspberry pi stack (containing 4 raspberry pis). I have a single GPS with serial and I2C output. I want the supply the GPS information to all the 4 raspberry pis simultaneously. Is it ...
0
votes
0answers
102 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 ...
0
votes
2answers
59 views

Writing to GPS HAT on Raspberry Pi Zero W Never Returns Anything

I have attached a GPS HAT to a Raspberry Pi Zero W running RASPBIAN STRETCH WITH DESKTOP. When I SSH in to run a simple Python script that writes to the HAT serial port, nothing happens and I am not ...
0
votes
0answers
16 views

Help with troubleshooting serial communication with Win10

I seem unable to get access the RPi from my Win10 PC over the serial i/f, for either a pi-3 or a pi-z-w. For the pi-3 I have turned the bluetooth off and enabled uart=1 (not sure if the order these ...
1
vote
2answers
102 views

Interfacing Arduino with Raspberry Pi [closed]

Can we interface Arduino with Raspberry Pi? I need to interface 16 pressure sensors with Arduino. And get the reading through to Raspberry Pi using serial port communication. Is that possible?
0
votes
0answers
42 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 ...
0
votes
0answers
143 views

Connect multiple SPI e-paper devices to a single Pi

So I'm thinking of getting these 2.9" displays: https://www.waveshare.com/wiki/2.9inch_e-Paper_Module#Working_with_Raspberry_Pi they come with an SPI interface that can be connected to the Pi. Is it ...
1
vote
0answers
29 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 ...
0
votes
1answer
86 views

Using Serial to Read Ultrasonic Sensor?

I have an HRLV-EZ4 ultrasonic sensor hooked up to my RPi 3 B+ like so: Serial output --> pi RX (pin 10) V+ --> pi 5V GND --> pi GND I've already gotten it to work with an analog voltage output and ...
0
votes
0answers
37 views

Rasperry Pi and Arduino echo over USB

I am trying to create an "echo server" with Arduino UNO, so that user could send some message to it through Raspberry Pi and receive the same response. On Pi I am using Python and PySerial library to ...
0
votes
1answer
87 views

HC-08 - RPI 3 - Can read but can't write

I use a Raspberry Pi 3 Model B and I have a Bluetooth HC-08 module. I would like to be able to send and receive data. I use the port /dev/ttyS0 and I changed the file /boot/config.txt for "...
0
votes
0answers
562 views

change baud rate of serial port raspberry pi 3 android

I installed lineage os 14 on raspberry pi 3 I connected a gps module with UART port, however, the baud rate of GPS is 9600 but baud rate of /dev/ttyS0 is 115200 I want to change the baud rate of ttyS0 ...
0
votes
1answer
28 views

Passing data from output of a function to be used in a function python

I have a few parts of a weather station together and am running into an issue with functions. the humair fuction returns two values hum and airtemp. The problem is when the sendpost function runs it ...
0
votes
1answer
29 views

Is serial output via USB an option to make a rs232 connection to a pi?

There is a lot to find online to make a serial port with the gio 14 and 15 pins on the pi, isnt a usb to serial converter on a usb port of the pi a good option ? I ask this because i want to use the ...
0
votes
3answers
204 views

Error on changing permissions in serial port

I have been trying to find a solution for 2 days but I wasn't able to find one. I want to change the permission of the /dev/ttyAMA0 but seems to be impossible. I tried with sudo chmod 777 /deb/ttyAMA0 ...
0
votes
1answer
80 views

No parity bit in Serial communication using PL011 uart

I have little experience on UART communication. I am using the PL011 UART instead of mini mart in a Raspberry Pi 3, therefore I should have parity bit. The thing is when I enable the parity bit in my ...
0
votes
2answers
61 views

Memory leak using node-serialport library on pi zero w

Ok, I'm scratching my head here. I am playing with the node-serialport library and when I run this script, the memory is eaten up at a rate of 2MB per second: var SerialPort = require('serialport'); ...
1
vote
0answers
22 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 ...
0
votes
2answers
87 views

Debricking WNR2000v3 with Raspberry PI and a serial connection?

I don't actually need to debrick this WNR2000v3, I'm just trying to learn how to connect to an embedded device using a serial connection to see if I can do it. I believe I have setup the wires so ...
0
votes
1answer
131 views

Rubbish Values (b'\x00\x00\x00 … ') - UART of Arduino to RPi 3B

I am getting b'\x00\x00\x00 ... ' together with the data I want. For example, my Arduino is writing 'hello raspberry' to RPi. At the RPi, it receives 'b'\x00\x00\x00 ... hello raspberry\r\n '. Why? ...
0
votes
0answers
15 views

Rasberry Pi and Sim900A. Trouble with phone calls

First of all I apologize for my English) I connected Raspberry Pi 3 b with sim 900A correctly as many suggests. My sim900A has its own power supply with 2A/5V Task was to take phone calls ...
1
vote
1answer
33 views

Can you get / store readings from a RadioShack 22-812 Digital Multimeter with a raspberry pi serial interaface?

I was looking at an article on debricking an OpenWRT router using it's serial interface by hooking it up to a Raspberry PI when I realized that my old RadioShack 22-812 Digital Multimeter also has a ...
0
votes
0answers
150 views

Windows 10 IoT Core read serial data like in linux

So I'm currently building an app in UWP to run on Windows 10 IoT Core. So far everything works like a charm. Except I'm using an Dragino GPS/LoRa module to get GPS data and process that. Now, in ...
0
votes
1answer
109 views

mqtt on rpi zero w

I have rpi zero w system with below spec. system specifications: micro SD card slot, a mini HDMI port, two micro USB ports (one for power, one for USB), and 512MB of RAM. It has a single-core 700 MHz ...
0
votes
1answer
76 views

Serial connection with raspberry pi to arduino, works only once and needs a hard reset every time

so I am working on a project where I have to connect an arduino to the raspberry pi through serial and then transfer the input from the raspi to another I2C device. So, just to test things out and ...
2
votes
2answers
258 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 ...
1
vote
1answer
132 views

Serial communication using GPIO Pins for more than 2 raspberries

I'm doing a project at work which involves multiple (more than 2!) raspberry pies (Model 3 B+) being able to talk to each other (talk to each other means being able to send data of the size of a ...
0
votes
3answers
840 views

Arduino-Raspberry Pi fast data communication through serial

I am trying to sample from two analog sensors at highest frequency possible (using and Arduino Uno, MPC3002 ADC), then send the data to raspberry pi to save them as binary file. Arduino and MCP3002 ...