Python Forum
Python3 - serial port reload
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3 - serial port reload
#3
(Apr-07-2021, 04:38 PM)Larz60+ Wrote: your symlink points to ttyACM_dev0, therefore, if closed elsewhere, the symlink is also closed.
you need to reissue serial.Serial("/dev/ttyACM_dev0") in order to reopen.
1

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?
Reply


Messages In This Thread
Python3 - serial port reload - by parovelb - Apr-07-2021, 12:34 PM
RE: Python3 - serial port reload - by Larz60+ - Apr-07-2021, 04:38 PM
RE: Python3 - serial port reload - by parovelb - Apr-07-2021, 07:39 PM
RE: Python3 - serial port reload - by Larz60+ - Apr-07-2021, 10:34 PM
RE: Python3 - serial port reload - by parovelb - Apr-08-2021, 09:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Waiting for input from serial port, then move on KenHorse 3 1,381 Apr-17-2024, 07:21 AM
Last Post: DeaD_EyE
  MCU reboots after opening Serial port when ran from Raspberry PI zazas321 3 582 Mar-19-2024, 09:02 AM
Last Post: zazas321
  pyserial/serial "has no attribute 'Serial' " gowb0w 9 5,370 Aug-24-2023, 07:56 AM
Last Post: gowb0w
  Serial Port As Global Prasanjith 2 1,638 Mar-23-2023, 08:54 PM
Last Post: deanhystad
  python serial port barryjo 2 1,738 Dec-27-2021, 11:09 PM
Last Post: barryjo
  is there a way to mention port range or search for port dynamically with qConnection Creepy 0 1,545 Sep-09-2021, 03:15 PM
Last Post: Creepy
  How to Properly Open a Serial Port in a Function bill_z 2 4,694 Jul-22-2021, 12:54 PM
Last Post: bill_z
  Unable to read from serial port br0kenpixel 1 2,570 Aug-08-2020, 10:03 PM
Last Post: Larz60+
  Read Data from Serial Port PA3040 3 3,262 Feb-16-2020, 04:54 AM
Last Post: PA3040
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 5,049 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020