Rasbian Serial Console Configuration

By default the base MyPi Raspbian images have the serial console enabled on UART1 (ttyS0), these are pins 8 & 10 of the Raspberry Pi HAT connector

To use the console cables purchased from the eshop you first need to install the Prolific 2303 driver

Prolific 2303 USB Serial Driver For Windows/Mac

After downloading and installing this driver software you should plug in your cable, you can verify this has been detected and which COM port has been assigned by looked through the Windows device manager

If all has been installed correctly then you should see an item like the below appear :

MyPi Industrial Raspberry Pi Serial Console Configuration Step 1

This tells us that the device has been installed correctly and is active on COM18, if you do not see this message try reinstalling the driver with the cable plugged in.

 

The next step is to connect up the cable to the board, it's important that the Red +5V wire is never connected to the MyPi board, so take a moment to snip this wire off to avoid any mistakes.

Noting that Pin 1 is show in top left (next to the ASIO connector) here's the wiring order to follow:

MyPi Industrial Raspberry Pi Serial Console Configuration Step 2

With that all connected up start up a serial terminal program like Putty or similar

The serial port configuration to use is baud 115200 with 8N1 data/parity/stop bits  - this can be altered by changing the boot config setting in /boot/cmdline.txt

Start up the board and the following will appear, followed by the login prompt

MyPi Industrial Raspberry Pi Serial Console Configuration Step 3

MyPi Industrial Raspberry Pi Serial Console Configuration Step 4

 

 To disable the serial console you should remove the below from /boot/cmdline.txt

dwc_otg.lpm_enable=0 console=serial1,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

And then run :

# systemctl disable serial-getty@ttyS0.service

Contact us now to discuss your project

Ready to order, contact us today for pricing or samples

Contact Us