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
3answers
2k 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 ...
0
votes
1answer
544 views

Raspberry Pi Zero W - connect Micro USB to FTDI to arduino board

I'm using this FTDI on a Raspberry Pi 3 Model B to connect an arduino board via USB. can I do the same thing on a Raspberry Pi Zero W using this USB OTG Micro USB to Mini USB to connect the FTDI to ...
0
votes
0answers
118 views

python 2.7 vs pyserial - no _port

I really have tried searching through all the forums. confusing. The makers of Roboclaw wrote their test pythons scripts (and Roboclaw class) with Python 2.7. As of now, will NOT work with python v3. ...
1
vote
2answers
983 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
1answer
84 views

Can I use the USB connector to transfer plaintext data (via serial console / socket) to a linux PC?

I have a script on my pi that currently simply outputs some numbers from a sensor to the console, several times a second. I am using this for a demonstration, and need a way to reliably (not over the ...
0
votes
2answers
115 views

Can't get serial port working (header pins, Raspberry Pi 1 Model B)

I have read quite a lot of tutorials and tips about the issue, but serial port just doesn't work. There has to be some configuration that I have missed. The setup Raspberry Pi 1 Model B (oldest ...
1
vote
0answers
356 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 ...
2
votes
1answer
562 views

Blank terminal in Pi0 UART connection

Following this tutorial exactly: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/overview i.e.: Drivers are installed UART line is added and enabled I get a blank ...
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] ...
2
votes
2answers
258 views

Connecting sim-card module to Serial Pins

I am trying to connect a sim-card (GSM) module to my RPi. I've connected its serial pins, to the serial pins on the Pi. I then edited the /boot/config.txt file by adding enable_uart=1 to the end. ...
0
votes
0answers
196 views

Send Data using Raspberry Pi's Serial Number

Actually I have many Raspberry PI 3 Model B and I am able to find Serial Number of my Raspberry PI using Python script. But I can't able to send data from Cloud to specific Raspberry PI using it's ...
1
vote
0answers
602 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 ...
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
2answers
326 views

Is it possible to establish an SSH connection with the raspberry pi using the Serial Port?

I'm using a Raspberry Pi 3 running Raspbian. All I have available is an RS-232 port through an USB adapter to my PC running Ubuntu 16.04. Is it possible to establish an SSH connection using the RS-...
-1
votes
2answers
120 views

Problem in accesing serial port

I am trying to get access to the /dev/ttyS0 file in an attempt to interface sim808 to the RPi via TX and RX connection. However, when I am in the /dev directory, when I type in /dev/ttyS0 I get the ...
0
votes
2answers
425 views

Cannot connect to USB GSM Modem using Python

I am having trouble connecting to a 3G usb modem using python. when I try, in python interpreter: import serial ser = serial.Serial("/dev/ttyUSB1", timeout=2) I get: Traceback (most recent call ...
0
votes
1answer
97 views

Printing Serial Port Not Advancing Line

I have a project in which an Arduino is reading a sensor and printing that value to the serial port. When connected to the serial monitor in the Arduino IDE on my PC, the data is printed flawlessly. ...
1
vote
1answer
67 views

Unexpected data over /dev/serial0

I'm using a Raspberry Pi B+ to connect to the Adafruit Mini Thermal Receipt Printer using a slightly modified version of their provided python library. I've been able to connect to the printer and ...
0
votes
0answers
47 views

How do I make bluetooth work on the Raspberry Pi3 after disable for serial gpio?

I use serial gpio before but now want to use back the bluetooth function.How do I make bluetooth work on the Raspberry Pi3 after disable for serial gpio?
0
votes
1answer
654 views

USB to serial RS232 mouse converter

I need a mouse on old dos 486dx4 computer. This computer has a RS232 port only. I want a general solution to use usb mice on rs232 port. I'm new to raspberry capabilities, I'm asking if is possible ...
1
vote
0answers
60 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
1answer
771 views

Unable to make Serial communication both ways

This is my first attempt at understanding how serial communication on pi work, so I am testing this code: ''' UART communication on Raspberry Pi using Pyhton http://www.electronicwings.com ''' ...
0
votes
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, ...
0
votes
1answer
529 views

Serial communication with JAVA

I installed pi4j.deb and I I wanted to compile a code using this library but I got this error Exception in thread "main" java.lang.NoClassDefFoundError: com/pi4j/wiringpi/Serial at mainclass....
0
votes
2answers
210 views

Unreliable serial data transmission from RPi 3 to PC

I'm trying to send some data serially to my PC from an RPi 3, but I'm receiving gibberish most of the time. I have already performed the prerequisites: disabled Bluetooth and enabled GPIO 14 and 15 ...
0
votes
1answer
47 views

How to bind modem device to network interface

I have a Huaweii modem connected to a raspi zero w running on a Raspbian stretch lite, on the standart Raspbian wheezie, this modem was shown in ifconfig output as usb0, but now on stretch lite there ...
0
votes
2answers
2k views

ZFM-60 fingerprint reader via GPIO

I'm trying to connect a ZFM-60 fingerprint scanner (https://aliexpress.com/item/Free-Shipping-USB-Fingerprint-Sensor-Support-Android-Windows-System-Optical-Fingerprint-Reader-Sensor/32475559052.html?...
0
votes
1answer
30 views

Modifying what is shown in the uART

I am working on establishing user communication (one may say a basic UI) from the user's PC to my Raspberry Pi, where the RPI would accept pre-defined commands from the user via uART and then process ...
1
vote
1answer
914 views

Reading data from a PL2303 serial USB converter

My Pi 3 is connected to a solar panel system with an USB to RS232 cable. Unfortunately I am unable to receive any data with the Pi so far. I got it working under Windows. What I've checked on my Pi so ...
0
votes
1answer
392 views

How do you put the serial values(from arduino) to a specific grid in Tkinter? (Python 2.7)

I tried to put values in the grids from a string. But the values are not showing or updating. How do you put serial values(from arduino) to a specific grid in Tkinter? When I run the code, no values ...
3
votes
1answer
1k views

Can I use the TX/RX pins and the USB ports for multiple serial devices?

I have two devices I want to use (GPS module and a PM2.5 sensor) that both use serial communication. I know you can't throw two devices on the same serial line. However, I've seen some badly explained ...
1
vote
2answers
554 views

Eldat easywave usbserial device not detected

I have a pi 3. If I put a usb serial rfxcom device in the USB port I get a ttyusb0 serial device with ftdi drivers, but I have another USB stick with serial interface easywave which does nothing, on a ...
1
vote
2answers
171 views

How to connect to the pi over serial [duplicate]

So I am trying to connect to my pi over serial. I have never used serial, so I hope what I have is fine. I can't order anything new. I have a USB to serial adapter (RS232 I think, you can check the ...
0
votes
1answer
750 views

serial communication with raspberry pi and a device

My apologies. I really needed to clarify my problem. So I have this setup: My PC(my device) is connected to one end of an RS232 cable. The other end of the RS232 cable is connected to a R232 to USB ...
0
votes
1answer
730 views

RPi+RDM6300 Serial port not working

I'm trying to use my RDM6300 module with the Raspberry Pi 3 as show on this site: https://behindthesciences.com/electronics/raspberry-pi-rfid-tag-reader/ I disabled the terminal tty by putting in /...
1
vote
2answers
508 views

Serial communication using RS232C

I am new to Raspberry Pi and GPIO communication, I am going to make a program to create a communication between my laptop and raspberry via serial com. After referred some tutorial, little confused ...
3
votes
2answers
2k views

Receiving data over USB to GPIO

I'm trying to figure out how "plug the GPIO pins into a computer's USB" to receive data from said computer. The results from my searches have been either too confusing or not helpful. Please be gentle,...
1
vote
0answers
311 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/...
1
vote
0answers
1k views

Very slow serial port reading

I have the following code, used on an RPi2: import serial import time # Set up serial port ser = serial.Serial( port='/dev/ttyAMA0', baudrate=921600, parity=serial.PARITY_NONE, ...
1
vote
1answer
61 views

Incorrect TTYS0 input from sensor

I am trying to read data from a LV-MaxSonar-EZ0's TX pin connected to the RX pin on a Raspberry Pi Zero W. The problem I'm running into is that the data I'm getting does not fit what the sensor's ...
0
votes
1answer
1k views

Data transfer of UART over USB too slow

TL;DR : The PI was not the issue. The sender was. Take a look into my answer. long story I am facing a performance issue right now on a test setup i use to investigate limitations for my upcoming ...
0
votes
1answer
1k views

Serial Communication in Raspberry pi 3 B+

I want to communicate between Raspberry pi 3 B+ and GSM GPRS A6. I tried and I am unable to send data to GPRS Module from Raspberry pi. Now, I know that GPIO serial port is disabled by default in ...
3
votes
2answers
263 views

Failing to read the /dev/ttyAMA0 port in CSHARP ()

I have a GrovePi board, attached to my Raspberry PI 2. I want to read the GPS sensor, using the RPISER port on the GrovePi in my Universal Windows App (Windows 10 IoT Core), but it fails with the ...
1
vote
0answers
68 views

Struggle to read data with serial port of Rasp3

Sorry if I am asking something very basic, did not find any good post on how to handle this.. I am following a tutorial on how to communicate with my PI 3 using UART. I followed theses steps: Delete "...
1
vote
1answer
691 views

Serial USB-RS485 failing to read on Pi but not on Ubuntu laptop?

I am reading values from a Battery Management System using two, serial USB-RS485 adaptors (ftdi). I am doing this over MODBUS using the minimal modbus library and python: # Bank A # port name, slave ...
2
votes
0answers
283 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
2answers
616 views

Pi to Arduino Serial Communication: Repeating character on LCD [closed]

I'm trying to send multiple characters (two digit numbers) from a Raspberry Pi 3 (Python 2.7.9) to an Arduino Uno via USB. The Arduino then prints these numbers to a 16x2 LCD panel. So far, I can ...
0
votes
1answer
80 views

Max voltage while using serial data transmission on the GPIO

I want to comunicate a device with the Raspberry Pi using the serial interface. I know the RPi uses 5v logic, but the issue is that my device uses 9v. I have read that the max voltage that can be ...
1
vote
4answers
30k views

python serial.Serial() module not found error

I am trying to connect to the serial ports a Raspberry Pi 3 Model B running Raspbian through Python. import serial works fine but ser = serial.Serial("dev/ttyAMA0", baudrate=9600) yields this error: ...
0
votes
0answers
343 views

waveshare 3.2" LCD touchscreen touch functionality stopped working

I'm using this touchscreen on a raspi zero w and I'm currently working on a python application. I was working with the python serial module since some time and everything was working fine, but since ...