This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Let operating system identify USB connection?

Genius 5820 points

Hi,

this is a bit of a generis USB-question but may be somebody knows...

I'm developing firmware for a controller which is connected via USB and appears as serial interface on host system. Here operating system assigns a number to the interface (e.g. COM4 or /dev/ttyACM0). Now user could connect more than one controller to this system, which would lead to several new serial interfaces.

My question: how can I avoid the assignment between a specific serial interface and an controller is exchanged after next restart of host system? Would be a unique serial number in USB descriptor helpful here? Or what else is used by operating systems to identify a controller when vendor and product ID are the same for all of them?

Or in other words: I try to ensure the same controller is always assignet to the same serial interface number on every start-up.

Thanks!