11

Need putty to work on /dev/ttyUSB0

I know for a fact that the port (console on a switch) is 9600 8/n/1, so it should be simple.

ttyUSB0 shows up in dmesg.

So shouldn't I be able to select /dev/ttyUSB0 in putty's serial configuration and it should work.

Works fine when I'm running putty with windows. Doesn't work with Ubuntu/putty. I get no response.

This is how I started it:

putty -serial -sercfg 9600,8,n,1,N

Any suggestions?

muru
  • 207,228
Scott
  • 161

4 Answers4

18
sudo putty /dev/ttyUSB0 -serial -sercfg 9600,8,n,1,N

worked for me

hg8
  • 13,582
lhifnir
  • 181
4

I use minicom. To install minicom use command

sudo apt-get install minicom

Start minicom setup with command

xxx@yyy ~ $ sudo minicom -s

You will get setup menu

enter image description here

go to Serial port setup

enter image description here

Change Serial Device

Change Bps/Par/Bits

After changes hit Enter

Save setings

enter image description here

Go to Exit to exit from setup in minicom

You minicom is ready

enter image description here

2707974
  • 10,758
0

This is because you have not provided the read and the write permission to group of /dev/ttyUSB0 file ls -l /dev/USB0

Provide the permission: sudo chmod a+rw /dev/ttyUSB0

Putty will work fine.

0

sudo putty /dev/ttyUSB0 -serial -sercfg 115200,8,n,1,N -log datas.log

we can get the serial port in that esp32 in 115200 in serial port in the log in the datas in the log in linux we can store the data directly from arduino serial monitor