freeing device file handle upon device unplugging?

Alexander Stein alexander.stein at systec-electronic.com
Wed Jul 14 06:56:14 UTC 2010


Hello,

I use USB-RS232 converters very regularly. I noticed that if I use minicom on 
my /dev/ttyUSB0 and the converter is unplugged the device file is removed. So 
far so good, but minicom doesn't close the file handle resulting upon plugging 
the convert in again. I get /dev/ttyUSB1 instead. So have to create several 
configs to cover the most common situations.
The biggest problem here is with /dev/ttyACM0 which is created by using USB-
CDC. This device file will be deleted on each reboot of the remote system 
(embedded boar din this case). So I have to make sure I quit minicom each time 
otherwise I'll get a different device file than before.
At least minicom should free the device file handle so upon creation the same 
name is free at least. Maybe there is also the possibility to reconnect (see 
ACM problem)

Best regards,
Alexander Stein



More information about the minicom-devel mailing list