Stack Exchange Network

Stack Exchange network consists of 175 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!

0
votes
1answer
33 views

LTE modules connected to USB hub cannot be accessed

The USB-HUB is self-powered, and two LTE modules are connected via USB-SERIAL to USB-HUB. We are facing a problem is that,The devices which are connected to USB-HUB can not be accessed. Is there any ...
1
vote
2answers
60 views

Is my GPS module fried?

I've tried reconnecting an old GPS module to the UART pins on my raspberry pi, but it seems it's not able to get a satellite fix. I've had troubles trying to get gpsd started, but I'm able to test ...
1
vote
1answer
33 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 ...
1
vote
2answers
21 views

Permission denied using Serial

I'm using some XBee to build a mesh network and everything is working, BUT only if I run the code using sudo. Now that the code is "Finished" i want to remove this need, because i know that it isn't ...
0
votes
1answer
23 views

Xbee-API python

I'm trying to use my Raspberry Pi B+ as a gateway so others sensors, also with xbee, can send data and get a few kind of commands by it. The problem is that i can only read the data with the simplest ...
1
vote
2answers
68 views

Is there a way to connect a DHT22 humidity sensor to a USB Port?

Forgive how green I am. Can I use a USB to TTL cable to connect a DHT22 sensor (not the module) to a raspberry pi and then listen in to the USB TTY in Raspbian to pull data off of the sensor? ...
0
votes
1answer
21 views

Picam and USB serial comms issue

Are there any known issues with serial comms & the Picam module? When I have a serial channel open (over USB) & write to it whilst viewing the input from a Picam on screen, the view port will ...
-1
votes
1answer
30 views

Serial communication error

Could someone help me to fix this error while trying to connect RPi 3 B+ to an inverter in order to read data via CH340G usb module, Below the used code : from pymodbus.client.sync import ...
1
vote
0answers
20 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
35 views

Modbus communication

I try to read data from a device by raspberry 3 B+. those two devices are connected via CH340G usb module (USB to Serial (TTL) adapter). Concerning the python code; here's: from pymodbus.client....
1
vote
0answers
28 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 ...
0
votes
1answer
30 views

Transfer JPG over serial between 3B+ and Zero W

I would like to start by saying that I am rather new to Raspberry Pi, but I have programmed Arduino. At the moment I am trying to get a Pi Zero W to transfer a JPG over serial using python and the ...
1
vote
1answer
33 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 ...
4
votes
2answers
682 views

How many serial ports are on the Pi 3?

How many serial ports are on the Pi 3? There is one on the GPIO pin that goes to ttyS0. Is there a separate one for USB? I have read somewhere about /dev/ttyUSB0. Is that a separate serial port? ...
1
vote
0answers
26 views

Sixfab LTE IOT HAT throwing continuous AT Command

I was working on getting my new Raspberry Pi HAT that I have received and tried the simple example just to see if it is working fine. I have not been able to send a text message to my mobile phone. I ...
2
votes
0answers
32 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 ...
0
votes
1answer
79 views

Serial Communication from Raspbian using Python to Arduino

In Terminal its working but not working using python code. My Code: import serial from time import sleep ser = serial.Serial ("/dev/ttyS0") while True: received_data = ser.read() ...
1
vote
2answers
46 views

Error while using wiringSerial

I am new to the Raspberry subject and only figure out some basics. I want to use a Nextion-Display withe a Raspberry pi 3b+ and communicate over the UART pins. For this I found wiringPi and that it ...
2
votes
2answers
89 views

data packet of hex values sent over serial

I have googled, read, experimented etc and still have had no luck sending a packet of 5 hex values over serial. Here is what I have tried: import serial import time ser = serial.Serial( port='...
2
votes
2answers
211 views

Serial to Arduino totally non-responsive

I'm trying to connect my Arduino to my Raspberry Pi using the GPIO pins. I understand that the Pi uses a 3.3V signal while the Arduino uses a 5V signal so I bought a bi-directional logic level ...
0
votes
0answers
16 views

Using Device on /dev/ttyAMA0 instead of Wifi/Ethernet

How can I redirect all the trafic through /dev/ttyAMA0? I have my RPi connected to a LoRa-Mote over serial. Now I want to be able to send all my internet trafic over the antenna of the mote. Reason: ...
1
vote
1answer
51 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
1answer
51 views

Serial comms & USB camera in parallel/threaded?

My project is currently using OpenCV to controll a pair of motors via hardware PWM (am using the pigpio library for GPIO control). The video input is from a USB webcam. I would like to add some ...
1
vote
0answers
39 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 ...
0
votes
1answer
69 views

Several serial ports with c++

Trying to work on Raspberry Pi 3, Model B V1.2 with several serial ports with C++ code. Previously I should say that when I use only one ports everything works like a charm, so ports configuration is ...
0
votes
0answers
32 views

specifying baud rate when using PyBluez Bluetooth library

I'm trying to establish Bluetooth connection for a hc-05 Bluetooth module. When using the "serial library" to setup the connections, you can specify the baud rate using "serial.Serial("*******", baud ...
0
votes
0answers
49 views

Sending Data from LoRa connected to Raspberry Pi

My objective is to connect a LoRa module with RPi and send data using it. So I made the connection:(Rpi to LoRa) 3v3 (Physical Pin 1) to Power Source (Pin 1) Tx (Physical Pin 8) to Rx (Pin 3) Rx (...
4
votes
1answer
490 views

RS232 to Raspberry Pi Zero W

I know this may be a dumb question but can you connect a RS232 Tx, Rx, and Ground from a device directly to the Rx, Tx and Ground on a Raspberry Pi Zero without having to get a Max3232 or something ...
0
votes
0answers
34 views

Can't Login To Pi Model 3B+ Via Serial Connection To PC Using PuTTY

Ok, so basically I have installed raspbian-stretch onto the pi using an SD card. I was having issues getting anything to show over the serial connection using putty so I connected the pi to a TV using ...
0
votes
1answer
50 views

Cannot detect ttyS0 in python RPi3b+

I'm using the Rpi 3B+ and understand the hardware uart is used by the bluetooth. I'm OK to use the other uart I've followed several threads and believed I've done all I can. Enabled the Uart in ...
0
votes
0answers
46 views

Change UART default pins

On of on my pi zero I think my RXD pin is out. When trying to connect through usb/serial I receive all the loading of the boot and the login console but cannot send anything (thus cannot login). I ...
0
votes
0answers
35 views

Cannot connect to GSM 900A Module

I am working on a project that uses SMS to push data to a blockchain. I bought a GSM 900A Module and connected it to Raspberry Pi 3b+. The connections are as shown in this picture : https://i.stack....
1
vote
0answers
42 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. ...
0
votes
0answers
313 views

How can I recieve data from uhf rfid reader's usb port to my raspberrypi controller

I am new to raspberry pi, currently we want to develop gate control with open/close boom-barrier so we are using an UHF RFID reader and a raspberry pi. I bought a RFID reader that has a USB connector ...
0
votes
1answer
36 views

Serial read from arduino not working properly

I am trying to read analog read from ardunio connected to my raspberry pi. Following are my raspberry pi and arduino codes. Raspbery pi: import time import serial ser = serial.Serial('/dev/ttyACM0'...
1
vote
0answers
46 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 ...
0
votes
0answers
28 views

arduino to raspberry pi serial communication getting wrong result

am trying to get the heart rate bpm from Arduino to raspberry through the serial communication. #define USE_ARDUINO_INTERRUPTS true #include <PulseSensorPlayground.h> const int PulseWire = 0; ...
1
vote
0answers
45 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....
-2
votes
1answer
26 views

Ser.write() ,when checked shows only the length

I have used a=ser.write("TEST".encode()) in my code to send data using UART gpio in Rpi. The code shows no error but when I print a,it gives me the length only. Actually i am trying to interface Rpi ...
-1
votes
1answer
210 views

Serial Port & C Code

I have a sensor connected to an ODROID UART (Basically an RPi just a different name for the UART port) and using the WiringPi Serial library. I am able to echo/cat to the sensor via two terminal ...
1
vote
0answers
35 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
58 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
682 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
vote
0answers
59 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
159 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
vote
1answer
242 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
109 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 ...
1
vote
3answers
997 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
126 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
84 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); ...