USB changes name automatically
Hi. Im working with GPS receivers and i connect them to USB, and communication is serial.
To open the port i use /dev/ttyUSB0, but without reason (that i know) the port changes name automatically and turn to /dev/ttyUSB1, and of course the program ends.
Im working in Ubuntu, and i read about UUID, that it shouldnt change the name.
I dont know how is the UUID of /dev/ttyUSB0. and /dev/ttyUSB1, because im working with 2 GPS receivers and i have to know both.
Anyone could tell me if UUID solve my problem, and if solve how can i know the UUID of usb device?
Then to open the port i use that UUID instead of /dev/ttyUSB0 or /dev/ttyUSB1?