SN number reading from Arduino Board

Dear Guys,

is it possible, to read the SN Number from the Arduino board???

It is possible over the IDE. But is it also possible to read it from Program???

Thanks
SN

Arduino has a Unique ID! - End Devices (Nodes) - The Things Network

The SN: shown in your graphic is being recovered by the PC USB driver. For the UNO R3, the serial number is embedded in the software of the 16U2 uC on the UNO board.

Perfect, that what i need,

thanks a lot

That means that it's NOT retrievable by the Uno CPU itself, right?

I cannot envision any methodology unless Arduino incorporated a hook in the serial interface to echo back to the homeship... technically, it could be done but I cannot envision why they would bother.

Ray

Added:

from git source:

#include "Descriptors.h"

/* On some devices, there is a factory set internal serial number which can be automatically sent to the host as
 * the device's serial number when the Device Descriptor's .SerialNumStrIndex entry is set to USE_INTERNAL_SERIAL.
 * This allows the host to track a device across insertions on different ports, allowing them to retain allocated
 * resources like COM port numbers and drivers. On demos using this feature, give a warning on unsupported devices
 * so that the user can supply their own serial number descriptor instead or remove the USE_INTERNAL_SERIAL value
 * from the Device Descriptor (forcing the host to generate a serial number for each device from the VID, PID and
 * port location).
 */
#if (USE_INTERNAL_SERIAL == NO_DESCRIPTOR)
	#warning USE_INTERNAL_SERIAL is not available on this AVR - please manually construct a device serial descriptor.
#endif

/** Device descriptor structure. This descriptor, located in FLASH memory, describes the overall
 *  device characteristics, including the supported USB version, control endpoint size and the
 *  number of device configurations. The descriptor is read out by the USB host when the enumeration
 *  process begins.
 */

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.