Putty on Ubuntu18.04 via VMware Workstation15

Post Reply
rsato
Posts: 11
Joined: Fri May 15, 2020 6:03 am
Location: Japan

following the instruction on Working.with.Zephyr.pdf (Revision: 0.1.0) , but not able run putty due to fatal error.
Untitled.png
Untitled.png (137.88 KiB) Viewed 18844 times

thanks for your advice.
spingali
Posts: 10
Joined: Fri May 15, 2020 5:58 am

The serial port is not available on ttyUSB0. That is the error.

Make sure the connection is proper and find out which port it is connected on. You can use below command.
On my ubuntu system the output is as below.

Code: Select all

qlblue@Ubuntu184-3:~$ dmesg | grep ttyUSB
[    4.084503] usb 2-1.4: cp210x converter now attached to ttyUSB0
If you are using a virtual box, first you have to expose the USB port to Ubuntu through virtual box. Please refer virtual box documentation on this.
In fact, if you are using virtual box, you can use Tera Term/Putty on windows it self.
rsato
Posts: 11
Joined: Fri May 15, 2020 6:03 am
Location: Japan

hi,

I'm using VMWare Workstation 15 Player on WIndows10 for this time.

I hit the command as
ryo@ubuntu:~$ dmesg | grep ttyUSB
but seems nothing match with ttyUSB.

QuickFether being connected to laptop and select the virtual machine to connect. How can I get the info on Ubuntu18?

thanks,
User avatar
tutatis7
Posts: 10
Joined: Mon May 18, 2020 1:20 am

rsato,

I was having a similar issue with my set up.
I'm using VirtualBox VM on a MAC running Ubuntu 20.04 LTS.

So, I found that I had to first enable the USB port on VirtualBox. So I assume that you might need to find that in the VMware settings for the Ubuntu VM.

Then when you get into Ubuntu, in terminal you can try
dmesg | grep tty

In my set up, the port is assigned to an ACM device. so instead of ttyUSB0, it is assigned to ttyACM0. Once I change it to that in the command I was able to run putty successfully.
rsato
Posts: 11
Joined: Fri May 15, 2020 6:03 am
Location: Japan

thanks tutatis7,

Tried to enable USB connection on VMWare Workstation and back to the terminal to confirm by typing the command.
ryo@ubuntu:~$ dmesg | grep tty
[ 1.372396] printk: console [tty0] enabled
[ 5.462632] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
ryo@ubuntu:~$
then tried with ttyS0 on Putty but seems it's not a correct port to connect to...

Can anyone help to check my connection and advice?
spingali
Posts: 10
Joined: Fri May 15, 2020 5:58 am

Inside the Ubuntu window, click on Device menu and then USB. In the list of ports, see if your serial port is checked. If not select the port. Try again and see if it is checked. Unless the port is marked checked, it will not be available for Ubuntu.
Post Reply