Hi,
I had the Jetson connected directly with the Arduino via USB cable and all worked well. After several communication iterations (Jetson->Arduino communication only), opening the serial port in python failed and I am unable to connect to the Arduino anymore (not via the studio as well). Tried different Arduino/Cable with no help.
Here is the error:
Traceback (most recent call last):
File “/home/dlinano/.local/lib/python3.6/site-packages/serial/serialposix.py”, line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 13] Permission denied: ‘/dev/ttyS0’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “serial_send.py”, line 3, in
with serial.Serial(‘/dev/ttyS0’, 9600, timeout=10) as ser:
File “/home/dlinano/.local/lib/python3.6/site-packages/serial/serialutil.py”, line 244, in init
self.open()
File “/home/dlinano/.local/lib/python3.6/site-packages/serial/serialposix.py”, line 325, in open
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: ‘/dev/ttyS0’