Skip to main content
Sietse
Associate III
September 18, 2017
Solved

STM32F4 USB serial number not unique!

  • September 18, 2017
  • 2 replies
  • 1253 views
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
This topic has been closed for replies.
Best answer by Vangelis Fortounas
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

2 replies

Vangelis Fortounas
Associate II
September 18, 2017
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
SietseAuthor
Associate III
September 19, 2017
Posted on September 19, 2017 at 09:41

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