Apr-07-2021, 07:39 PM
(Apr-07-2021, 04:38 PM)Larz60+ Wrote: your symlink points to ttyACM_dev0, therefore, if closed elsewhere, the symlink is also closed.1
you need to reissueserial.Serial("/dev/ttyACM_dev0")
in order to reopen.
Actually in my case the the device is found at ttyACM0 at first. After disconnecting and reconnecting, the device is found at ttyACM1. Regardless of the port number, the symlink is always ttyACM_dev0. Even if I reissue the
serial.Serial("/dev/ttyACM_dev0")
still there is no communication.Is it perhaps necessary to delete and re-import all the modules for serial port handling (serial, serialutil and serialposix) and refresh the memory allocation variables?