If I have an application where I have implemented USB CDC-ACM, how can I set the serial number seen by the PC when I connect my device? Is it possible to set it at runtime?
If I have an application where I have implemented USB CDC-ACM, how can I set the serial number seen by the PC when I connect my device? Is it possible to set it at runtime?
Hi,
Normally the serial number is set on boot, e.g.:
USBD_DESC_SERIAL_NUMBER_DEFINE(sample_sn);
err = usbd_add_descriptor(&sample_usbd, &sample_sn);
if (err) {
LOG_ERR("Failed to initialize SN descriptor (%d)", err);
return NULL;
}
I guess it's potentially possible to manipulate it if you want to.
Kenneth
Hi,
Normally the serial number is set on boot, e.g.:
USBD_DESC_SERIAL_NUMBER_DEFINE(sample_sn);
err = usbd_add_descriptor(&sample_usbd, &sample_sn);
if (err) {
LOG_ERR("Failed to initialize SN descriptor (%d)", err);
return NULL;
}
I guess it's potentially possible to manipulate it if you want to.
Kenneth