Pyserial couldn't open '/dev/ttyUSB0'

I’m trying to communicate with arduino uno board through the serial port. and I found that my python program can’t open the port ‘/dev/ttyUSB0’ but Arduino IDE can access to the port without any error and I complete upload the ino codes. I checked it is attached successfully. I’ve tried several solutions.

I changed the permission of /dev/ttyUSB0. now its permission is 777.
I added my username to dialout group.
I double checked the baudrate 9600.
I executed the python program with sudo command.

tried to find the exact solutions but there was no answer.

here is my program code. I extracted only the part making error messages.

try :
            self.py_serial = serial.Serial(port=ino_port, baudrate=baudrate, timeout=1)
        except Exception as e :
            print('Arduino mediator', e)

and the error messaged is below.

Arduino mediator [Errno 2] could not open port /dev/ttyUBS0: [Errno 2] No such file or directory: ‘/dev/ttyUBS0’

Hi evenil0206,

Are you using the devkit or custom board for Jetson Nano?

Are you connecting a USB-TTL serial console cable on Jetson Nano(USB side) to Arduino board(UART)?

Should it be ttyUSB0 rather than ttyUBS0?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.