USB Arduino device, setting up unique ID

Hi,

This is probably asked a lot, but i didn't manage to find a complete answer to it.

I want to address my arduino uniquely. When i plug in this one specific board, it needs to be recognized as an unique device with unique ID, not as an arduino usb to serial. Is there any ways for doing this? This needs to happen in order to be able to assign different drivers for the appliance.

What i've read, is writing this information in arduino EEPROM. Does the computer get the information from there upon connection? If yes, where in the memory the serial/manufacturer needs to be written to?

Thank you

Each Arduino that has a USB port, has a unique number in the USB chip. That is why when a different Arduino is plugged in the computer, the OS assigns it a different Com port.

@Steinie
How to access this number?
Can the Arduino access this number?

@Steinie
How to access this number?
Can the Arduino access this number?

I don't think you can access that number, as it's in the USB chip.
The computer can access it when plugged in.

, the OS assigns it a different Com port.

That is for Windows only.

The computer can access it when plugged in.

Under Linux Arduino Nano China clones with CH340 USB chip serial number is always 0:

Apr 26 22:09:09 oc8676105701 kernel: usb 5-2: new full speed USB device number 15 using uhci_hcd
Apr 26 22:09:09 oc8676105701 kernel: usb 5-2: New USB device found, idVendor=1a86, idProduct=7523
Apr 26 22:09:09 oc8676105701 kernel: usb 5-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Apr 26 22:09:09 oc8676105701 kernel: usb 5-2: Product: USB2.0-Serial
Apr 26 22:09:09 oc8676105701 kernel: usb 5-2: configuration #1 chosen from 1 choice
Apr 26 22:09:09 oc8676105701 kernel: ch341 5-2:1.0: ch341-uart converter detected
Apr 26 22:09:09 oc8676105701 kernel: usb 5-2: ch341-uart converter now attached to ttyUSB0

So at least "/var/.log/messages" does not allow to identify the unique number i it exists.

Hermann.