cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 USB serial number not unique!

Sietse
Associate III
Posted on September 18, 2017 at 09:27

On the  different STM32F4 Discovery boards with STM32F407 that we have here the serial number of the USB Virtual Port connection, as reported on the PC, is always 00000000001A.

Is this as it should be? Also, strange low number.

We also have another stm32f4 system with does have a 'real' serial number.

The actual question is how can I distinguish between usb connections when more systems are connected.

I need this to create a unique device name. This is in Linux, and udev rules are used to do this.

Normally I use the serial number for this, but what can I do now?

  Thanks in advance,

       Sietse

#stm32f4-usb-serial-number-virtual-com-port
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on September 18, 2017 at 22:46

Hello!

Serial number of USB VCP is described as text inside usbd_desc.c file (or some other 'descriptor' file)

You can change this string to fit to your needs

Regards

vf

View solution in original post

2 REPLIES 2
Posted on September 18, 2017 at 22:46

Hello!

Serial number of USB VCP is described as text inside usbd_desc.c file (or some other 'descriptor' file)

You can change this string to fit to your needs

Regards

vf

Sietse
Associate III
Posted on September 19, 2017 at 09:41

Thanks. I only looked in the Middleware directory for the string:(