Skip to main content
20 votes
Accepted

What is the correct way to connect serial console on RPi4 Model B?

First a complete picture with "official" colored wires. Thanks to fiery for providing this picture to connect an USB to TTL serial adapter. As shown in the pinout you have mixed up TXD (pin 8) and ...
Ingo's user avatar
  • 42.2k
6 votes

Change/reset password WITHOUT monitor/keyboard

You don't have to create a temporary user on a different system to generate a password hash. You can do it without root access by running: openssl passwd -salt "salt" "password" ...
Dmitry Grigoryev's user avatar
5 votes
Accepted

Garbage on Raspberry Pi console

Acording to this question, to use UART on the Pi-3 you will need to disable bluetooth.
Patrick Cook's user avatar
  • 6,365
5 votes

Colored console over serial connection?

I read Walter's answer here and researched more and found: https://kb.iu.edu/d/acpy which indicated: TERM=ansi; export TERM does the job, you can add it to your .bashrc However, I still have grey ...
Robert's user avatar
  • 51
4 votes

Debugging USB OTG Serial on the Pi Zero W

Setup for OTG Serial Gadget Enabling the USB OTG Serial Gadget Plug your miniSD card into your card reader and navigate to the card's /boot partition. This is the smaller of the two partitions. ...
RubberStamp's user avatar
  • 1,399
4 votes
Accepted

How tp get USB to USB UART console without linux

Let me try to un-confuse you :) In the good old days, computers came with serial ports. The standard is known as RS232. These slowly disappeared, first from laptops and then from desktops. These days,...
JayEye's user avatar
  • 1,898
4 votes

Disable UART such that it will not be on during the boot process, but only after

You can solve this by setting the bootdelay of u-boot to -2 using the u-boot console: setenv bootdelay=-2 saveenv Another solution is adding these lines of code to include/configs/rpi.h: #define ...
Marcel Bochtler's user avatar
4 votes
Accepted

How can I disable the serial console on distributions that use U-Boot?

Here is the video where it is explained step by step how to prevent U-boot console from interrupting autoboot and sending debug messages on UART. I know links only answers are frowned upon, so here' s ...
Dmitry Maslov's user avatar
4 votes
Accepted

UART (not the board itself) stopped working after connecting 5V to GND, can it be recovered?

If a UART GPIO is damaged that is a permanent failure and can not be fixed. In fact the damage can spread to adjacent GPIO causing them to fail and eventually the whole board may be damaged. To check ...
joan's user avatar
  • 71.1k
3 votes

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

This answer describes how to transfer plain text between PC and RpiB, using a serial cable. At the PC side, an usb to serial adapter can be used to converts PC's USB signals to 5V UART serial ...
tlfong01's user avatar
  • 4,675
3 votes
Accepted

How an I improve sshd latency over WiFi?

You could always just plug the pi into the USB-C port and SSH in that way. The USB-C can be used to turn the Pi4 into an ethernet device, I've written up instructions on how to set it up here: https:...
hardillb's user avatar
  • 196
3 votes

RPi 4 -- Garbage on serial console (UART) using upstream kernel

Only for the completeness: first check your connection as shown at What is the correct way to connect serial console on RPi4 Model B?. But I believe you are right. As I see you are experimenting with ...
Ingo's user avatar
  • 42.2k
3 votes

How to make an MS-DOS style console program?

Have a look at the curses library. From your description it will probably do what you want. Google for "curses library c tutorial".
joan's user avatar
  • 71.1k
2 votes

Garbage on Raspberry Pi console

Assuming the baud rate is correct, and the connection is good. I suspect that the language setting is incorrect. From the setup menu select general and change the language from English to UTF8.
Steve Robillard's user avatar
2 votes

Change default console TERM from vt102 to xterm?

Had I read the "Docs" section of the output from systemctl status [email protected], it includes a link to http://0pointer.de/blog/projects/serial-console.html . From there: serial-getty@....
ziesemer's user avatar
  • 263
2 votes

TXD0/RXD0 to D+/D-

The traditional UART/USART and the new USB are worlds part. Please read about the differences before wiring up two completely incompatible systems, possibly damaging the electronics and/or endangering ...
Shreyas Murali's user avatar
2 votes
Accepted

Can you hot-plug a USB to TTL Serial Cable to the Raspberry Pi?

Yes, provided you are sure it is compatible. Adafruit sells such an adapter. From the product description on that page: The power pin provides the 5V @ 500mA direct from the USB port and the RX/...
bobstro's user avatar
  • 3,998
2 votes
Accepted

Connect PC to Rpi3 using serial connexion in puTTY

You plugged the cables wrong. You have to plug RX to TX and TX to RX. Also plug ground to ground.
Radu's user avatar
  • 480
2 votes

How to connect to the pi over serial

Frankly, you have bought the wrong device. What you need is a USB to serial device with 3.3V compatible outputs. There are hundreds of posts on connecting these. There is NO WAY to connect RS232 to ...
Milliways's user avatar
  • 60.1k
2 votes
Accepted

Disabling serial console/kernel messages on Pi B 2 while still being able to write/read to serial port

Edit /boot/cmdline.txt using sudo nano /boot/cmdline.txt or your preferred method, and delete console=serial0, 115200. If you are using an older version of Raspbian, you might need to delete ...
Patrick Cook's user avatar
  • 6,365
2 votes

Extracting or storing a serial number during production

Presumably, you're looking for something that's encoded in hardware instead of a number you generate, and write to the SD card? If so: Raspberry Pis have "randomly assigned" serial numbers that are ...
Seamus's user avatar
  • 22.1k
2 votes

Mini UART Bluetooth PAN on Pi Zero W

Adding core_freq=250 to /boot/config.txt solves the problem by downclocking the GPU core frequency. I don't understand why this affects Bluetooth yet, but PAN over MiniUART is stable now.
Petrus Theron's user avatar
2 votes
Accepted

SIM800 UART Serial Corrupted Response Problem

I solved the question #1. I wrote that SIM800 GND and RPi USB GND had continuity, and I wasn't "wrong", as testing with a multimeter for continuity I got a match, as in, multimeter was buzzing. BUT, ...
ephestione's user avatar
2 votes

Vintage terminal as RPi console

This is not really a Pi question, however you CAN NOT connect a RS232 terminal to GPIO (even with a level converter) because the polarity is reversed. You MAY be able to use a RS232 converter (or ...
Milliways's user avatar
  • 60.1k
2 votes

RPi 4 -- Garbage on serial console (UART) using upstream kernel

This is a baud rate problem. You're getting a lot of x and f characters which have ASCII codes of 01111000 and 01100110 - note all bits inside those are repeated twice. The effective baud rate of your ...
Dmitry Grigoryev's user avatar
2 votes

How to enable console via uart1 in yocto for raspberrypi3 image

To use the default serial console available on pin 8 and 10 (GPIO 14 and 15) you have to use a USB to TTL serial adapter. How to connect it and how do configure the RasPi to get the serial console ...
Ingo's user avatar
  • 42.2k
2 votes

How to enable console via uart1 in yocto for raspberrypi3 image

Issue resolved, this issue was persisting because uart1.dtbo was not getting added in /boot/overlays/ path by default, so for making this to happen just added KERNEL_DEVICETREE_append = "overlays/...
Prashant's user avatar
2 votes
Accepted

Is there any automatic fallback from PPP to regular serial console if all else fails?

So I decided to "take the risk" and set up PPP without knowing the answer to this question. The answer is now known. Useful information for future Internet travelers: If you kill the PPP ...
HackerDaGreat57's user avatar
1 vote

Debricking WNR2000v3 with Raspberry PI and a serial connection?

It looks like you need to add a newline character. In Minicom settings select Screen and Keyboard and then experiment with the Add linefeed and Line Wrap options.
joan's user avatar
  • 71.1k
1 vote

Disable UART such that it will not be on during the boot process, but only after

Here is the video where it is explained step by step how to prevent U-boot console from interrupting autoboot and sending debug messages on UART. I know links only answers are frowned upon, so here' s ...
Dmitry Maslov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible