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!

724 questions
56
votes
4 answers

How do I make serial work on the Raspberry Pi3 (PiZeroW, Pi4 or later models)

My Pi3 serial console produces rubbish and fails to respond to the keyboard.
Milliways
  • 62,573
  • 32
  • 113
  • 225
30
votes
3 answers

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 large number of drivers and other interrupts which…
Nakedible
  • 1,561
  • 1
  • 13
  • 18
20
votes
1 answer

What is /dev/ttyAMA0

complete newbie here. Can someone please tell me what /dev/ttyAMA0. I read that it is the TxRx pins. But what is it? is it used to refer to the pins or their address? is it explicitly the Rx or the tx pin?
16
votes
3 answers

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 your microcontroller Since the serial pins on the…
Jivings
  • 22,656
  • 11
  • 94
  • 140
15
votes
5 answers

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 was inverting the data. If this is true, what circuit do I…
Setithing
  • 151
  • 1
  • 1
  • 3
15
votes
4 answers

How can I connect to a USB serial device?

I have a device with a USB serial port cable that I'd like to connect to my Raspberry Pi. The chipset for this USB to serial cable it the PL-2303 from Prolific Technology, Inc. How can I read data from the serial connection of this device using…
Swinders
  • 255
  • 1
  • 4
  • 11
14
votes
5 answers

Disable DTR on ttyUSB0

I'm connecting from Pi to Arduino-clone board. The problem is, that I need to disable DTR line, in order to prevent Arduino from resetting on connect. I have read that on RPi is not possible to control DTR, DCD and other lines. Is it this true for…
jnovacho
  • 324
  • 2
  • 3
  • 9
14
votes
3 answers

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 want to know the safest way to connect my Raspberry…
RPiAwesomeness
  • 3,021
  • 4
  • 31
  • 52
13
votes
1 answer

What are the usage of extra available holes in model B

Despite some research on the web, I cannot find the options available from these "opportunity" holes on the Rpi. I probably do not use the proper words to identify them. What is the name for this type of hole ? What are the usage for the…
Alain
  • 445
  • 1
  • 6
  • 13
12
votes
4 answers

How do I get the data from the serial port?

I have a Ciseco XRF radio module and a Slice of Pi expansion board. Using the program 'screen' works fine; I can see data being transmitted to the XRF module. How do I get the data from the serial port, so I can do some processing on it? I tried…
user518
  • 179
  • 1
  • 1
  • 4
12
votes
2 answers

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 is normal, in this case). I configured Gnokii and…
RolfBly
  • 609
  • 1
  • 9
  • 24
10
votes
2 answers

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?
Robert
  • 338
  • 2
  • 3
  • 11
10
votes
4 answers

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/terminal over serial is very bland and colorless,…
Patrick Cook
  • 6,365
  • 8
  • 38
  • 63
9
votes
2 answers

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? Can I attach 2 different devices 1 at each ttyS0 and…
Lightsout
  • 429
  • 1
  • 5
  • 20
9
votes
3 answers

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... problem is, it's not a very compelling…
Jeff
  • 115
  • 1
  • 1
  • 4
1
2 3
48 49