On 6-12-2012 9:18, Denis Gottardello wrote:
> Hi everybody. I have a problem with usb serial interfaces on Linux. If a 
> serial device is disconnected from the machine and then reconnected, if 
> before 
> the serial had as name ttyUSB0, then it will assume ttyUSB1. Now the sequence:
> 1) The device is connected and has name ttyUSB0
> 2) The program open the serial interface.
> 3) The device will be unplugged.
> 4) The program has an exception and close the serial and wait till ttyUSB0 is 
> present.
> 5) Now the device is reattached but it will be ttyUSB1
> 
> For obtain ttyUSB0 I must close the program, unplug and replug.
> 
> How can I do for obtain ttyUSB0 when the program is running?

So your OS is assigning different device names after reattaching? Sounds
like a Linux problem, not a programming problem.
Look at e.g. udev rules to persistently name the device ttyUSB0


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to