SerialException Permission denied

Im trying to use the usb c port to send serial data to an esp32 with a python program. I get the following error. serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyGS0: [Errno 13] Permission denied: ‘/dev/ttyGS0’

I googled this and added my user account to dialout . This had no effect. The code will work if I run the program under sudo but this wont be practical because it still requires me to enter the password. this will be a headless system once its installed.
UPDATE: I switched to using the UART on the GPIO pins. I was able to add a rule that let be used that port without prompt for permissions.

What do you see from “ls -l /dev/ttyGS0”? What do you see from the command “id” (the groups are the part of interest)?

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