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
43
votes
3answers
208k views

How do I make serial work on the Raspberry Pi3 , Pi3B+, PiZeroW

My Pi3 serial console produces rubbish and fails to respond to the keyboard.
2
votes
2answers
406 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 ...
4
votes
2answers
1k 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? ...
2
votes
2answers
234 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 ...
3
votes
5answers
16k views

UART problems on my Pi3

I am trying to send and receive radio signals using my Raspberry, but I am already stuck at the first step :) My Radio module uses UART for communication but I have failed to set up my serial ...
3
votes
3answers
2k views

Raspbian Wheezy, Raspberry Pi 3 and HC05

I now this is a long shot, but some reasons I was using Raspbian wheezy on Raspberry Pi 2, and I was able to use HC05 bluetooth module with wiringpi. Lately I had switched it to Raspberry Pi 3, yet ...
2
votes
2answers
338 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='...
0
votes
1answer
143 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() ...
8
votes
2answers
21k views

Why does USB port enumeration change?

I'm using a Huawei GMS/UMTS USB modem with Gnokii and Gammu. The modem was in the lower port on Pi. With dmesg | grep tty it would show up on /dev/ttyUSB0 and /dev/ttyUSB1. (2 USB devices on 1 stick ...
4
votes
1answer
24k views

Why my program won't communicate through ttyAMA0 on Raspbian (Jessie)?

I am running two different Raspberry PI and they are running Raspbian Wheezy and Jessie. On Wheezy, I simply commented out a line T0:23: respawn:/sbin/getty -L ttyAMA0 115200 Vt00 in /etc/inittab file....
8
votes
2answers
24k views

How to configure serial port settings of /dev/ttyAMA0?

I want to access the serial port by some BASH script files via /dev/ttyAMA0. How do I configure the serial port settings like speed, parity even/odd?
6
votes
3answers
3k views

How to install PiTFT and use to the GPIO for other usage (like serial console)

I am about to install PiTFT on a RPi model B. However, doing so, I will lose the GPIOs for other usage (like a serial cable cable, for instance). Is it possible to install a PiTFT and still have a ...
2
votes
1answer
2k views

Raspberry pi and serial

I want to design a simple application to write data from the raspbbery pi to my pc. My questions are : When raspberry pi starts I understand that it writes to the serial port boot messages. Can I ...
4
votes
1answer
5k views

USB Serial Port Configuration

Goal: configure serial to USB cable for 9600 8-N-1 Cable is plugged-in and observed: root@OpenHAB:~# uname -a Linux OpenHAB 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/...
3
votes
2answers
44k views

How can I test if the serial / UART is good on a Raspberry Pi?

I've purchased a used Raspberry Pi and have followed the instructions from Wolf Paulus's Journal to connect to the Raspberry Pi from my computer using a PL2303 USB adapter. The specifications on the ...
3
votes
2answers
3k views

9 Data Bits on UART pins?

I am wondering if it is possible to send 9 data bits framed with a start/stop bit at 1.25MBaud. I am currently using PySerial to configure the UART pins on the pi. I've stumbled across a few ...
2
votes
4answers
4k views

Use RPi as a LIN Master to control slave nodes

I am trying to use the RPi as a LIN Master to communicate with a number of slave nodes on the LIN bus. I can send the correct bytes, starting with the sync byte of 0x55, and then the node ID, the ...
2
votes
2answers
881 views

how to read NMEA 1083 data over USB on Pi?

we're trying to read data from a digital yacht AISnet base station on a Pi. From what I've read, Digital Yacht has drivers for both osx and windows (but not linux for this unit) and their job is to ...
1
vote
1answer
789 views

How to access SPI on Raspberry Pi B+

I tried searching here and other places. What is the best way to access the SPI and get the fastest speed out of it. My project involves interfacing the Pi with an ADC that is rated for 5Msps (http://...
1
vote
2answers
507 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 ...
28
votes
3answers
14k views

Can Raspberry Pi reliably bit bang a 9600 baud serial and is there example code?

I am wondering how feasible it is to use bitbanging to drive a 9600 baud serial via the GPIO pins on the Raspberry Pi. Obviously, Linux is not a terribly good platform for bitbanging, as there is a ...
13
votes
3answers
56k views

Safest way to connect Raspberry Pi to Arduino Uno R3

I am working on a robot using an Arduino Uno R3 and I wanted to have the ability of controlling the Arduino wirelessly, like stopping the Arduino without having to pull the power-plug every time. I ...
8
votes
3answers
82k views

How do I display an image file (PNG) in a simple window?

I've got a prototype I need to show for an RFID project. I've got the RFID (Parallax USB) working, and the sample Python script (my first) is displaying the ID of the card just like it's supposed to......
5
votes
3answers
28k views

Python serial permission issue

I'm trying to connect my Arduino to my RPi through python and PySerial, and I'm using the following code: import serial ser = serial.Serial('/dev/serial/ttyACM0', 9600) and I was getting an issue ...
5
votes
3answers
8k views

Raspberry Pi used as a cheap serial-to-WLAN converter

I want to use my Raspberry Pi as a serial-to-TCP converter. The Raspberry Pi should be a TCP-server that accept one TCP client (because more connections would end in a complete mess on the serial port!...
14
votes
3answers
2k views

How do I connect my printer to the serial GPIO pins?

I've purchased a Mini Thermal Printer from Adafruit. The documentation states: This printer is ideal for interfacing with a microcontroller, you simply need a 3.3V to 5V TTL serial output from ...
12
votes
5answers
13k views

GPIO-UART-to-Arduino communication

I have been trying with no luck to get the Raspberry Pi talking to an Arduino. I am using a 3.3 V-to-5 V converter to swap voltages. I did put an LED on the UART TX pin, and it looks like it ...
6
votes
4answers
6k views

Colored console over serial connection?

I am accessing two of my Pis via a serial connection on pins 8 and 10. One of them uses a serial to USB connector for my Mac and the other uses an HC-06 which connects to my Android. The console/...
5
votes
2answers
4k views

Unable to integrate Fingerprint sensor in Raspberry Pi2

I am trying to connect a R305 v1.6 fingerprint scanner with my Raspberry Pi2 Model B. Sensor: http://www.sunrom.com/p/finger-print-sensor-r305 I am using pyfingerprint module which supports ZFM-20 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
4k views

Reading serial data from Arduino

I have am working on a project where I'm trying to get a Raspberry Pi to play some sounds when triggered by button presses on an Arduino. The command is sent to Raspberry Pi through serial. I used ...
3
votes
3answers
4k views

connecting a USB to Serial TTL PL2303HX to Raspberry Pi

I have a USB to Serial TTL PL2303HX (Prolific chipset) that I would like to connect to my Pi. My Pi model is 2011.12. The USB to Serial adapter has 5 PINs labeled as follows: 3V3 TXD RXD GND +5V I ...
2
votes
2answers
2k views

How can I ensure all data sent from an Arduino is received by a Raspberry Pi?

I am using an Arduino Uno to sample a signal. I then want to send those samples in a block to the Raspberry Pi. At the moment I am simply using (on the Arduino side) Within loop Serial.write(value) ...
2
votes
1answer
8k views

Set default baud rate on /dev/ttyAMA0 and keep after reboot

I have a ITead Studio GPS attached to my RasPi Model B 2.0's UART serial port and it's specifications require baud rate to be set at 38400. I am using gpsd on Raspbian, which attempts to use baud ...
2
votes
2answers
1k views

Data collection from raspberry pi and send to computer (without using Ethernet or Wifi)

I use the Pi as sensor data collector and would like to to transmit the data back to software that is installed on my computer (and probably the software will instruct the Pi to perform some tasks, e....
1
vote
2answers
163 views

How to read Wiegand serial data? (Rx/Tx)

Ok, I am losing my mind... Why is this so damn difficult? Current situation: - 12V Access control device that is connected like this i.e. Wiegand D0 to Tx and D1 to Rx, with voltage dividers. - ...
1
vote
1answer
3k views

How to set a permission to call a Python script from PHP?

I connected an Arduino Nano via USB to my Raspberry PI3. The Arduino is programmed to send (via serial) 16 bytes of information every 500 milliseconds. In this RPi3 I have Python, Apache2 and PHP5 ...
0
votes
2answers
3k views

How should I properly communicate 2 Raspberry Pi via UART?

I'm testing serial communication with Python pyserial module. I try to communicate some strings between two Raspberry Pi's ... I tested transmitter and receiver code at same device connecting it's ...
5
votes
1answer
3k views

Can not use PL2303 USB to Serial with Pi B+

I have a PL-2303 USB-to-serial cable plugged into my Raspberry Pi via the USB port, which is then connected to a serial device. However, the Raspberry Pi is unable to read any data coming from the ...
4
votes
2answers
1k views

Binary garbage on the UART when powering the RPi

I have a strange issue I cannot figure out. I have a thermal printer (https://www.adafruit.com/products/597) plugged to the UART (/dev/ttyAMAO). I configured the RPi to remove the console on /dev/...
3
votes
2answers
8k views

How can a USB Bluetooth Dongle be used as login TTY

I would like to be able to use a Bluetooth Dongle - not the HC06 module, but a simple USB dongle (the pretty generic kind, or even poundshop type) as a serial login console/tty. I have already tried ...
3
votes
2answers
2k views

Serial Communication between Raspi and Arduino Mega

I apologize for the double post, but I asked this question earlier and somehow it does not appear under my user and I can't make any edit or comments to it: Trouble with UART Serial Communication with ...
2
votes
3answers
2k views

9 bit serial communication and parity error detection

I need to work on a serial protocol that uses the 9th bit as a 'wakeup' bit. All bytes are transmitted with the 9th bit in zero except for the first one, indication the message start. On the Raspi' ...
2
votes
1answer
1k views

How to connect rs232 board to PI

How to connect this rs232 board to the PI?
2
votes
1answer
595 views

Other hardware for camera slots?

I think the raspberry should get more cool hardware like the camera that works with the slot onboard. I'd love to get a fast RS485 onto this slot because i need all my GPIOs for LEDs. Currently I use ...
2
votes
1answer
1k views

Unable receive character properly in UART

I am trying to send and receive character using UART (GPIO14 as Tx & GPIO15 as Rx). I can transmit character successfully which I can check on minicom. Now I have short my RX and Tx pin so that I ...
2
votes
3answers
438 views

Separate SPI data

I am using the AD/DA Hat from WaveShare https://www.waveshare.com/wiki/High-Precision_AD/DA_Board I want to realize a continuous readout of the data. It worked very well so far, but I am not so ...
1
vote
3answers
4k views

Arduino to RPi serial Communication

I'm trying to get my Arduino to send my Raspberry Pi some ultrasonic information via a serial connection via the USB cable. I am close but my RPi is reading the input from the Arduino clipped ...
1
vote
1answer
1k views

Boot messages available over serial, however no login prompt :/

I've connected to the Raspberry Pi using a serial programmer for my Arduino. I've connected using screen and when I boot my Raspberry Pi it spits out all the normal kernel boot messages. However, at ...
1
vote
1answer
4k views

Pi + Parallax RFID reader + Python only reading one tag

Here are the three components that I have, in addition to Pi rev. A. Parallax RFID Reader: http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/txtSearch/rfid/List/1/ProductID/...