Get the serial number of an Arduino

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bigx
 
Posts: 15
Joined: Thu Sep 05, 2013 1:37 pm

Get the serial number of an Arduino

Post by bigx »

Hello,
I'm trying to generate a mac address from the unique ID of my Arduino (currently an adafruit feather M4).

I was able to do so on the teensy platform thanks to the following library: https://github.com/FrankBoesing/TeensyMAC

Is there any way to get a unique ID from the Arduino?

Regards

SV_Zanshin
 
Posts: 15
Joined: Wed Aug 30, 2017 11:47 am

Re: Get the serial number of an Arduino

Post by SV_Zanshin »

According to the datasheet for the SAMD5 processor in Chapter 9.6:

Each device has a unique 128-bit serial number which is a concatenation of four 32-bit words contained at the following addresses:
Word 0: 0x008061FC
Word 1: 0x00806010
Word 2: 0x00806014
Word 3: 0x00806018

The uniqueness of the serial number is guaranteed only when using all 128 bits

User avatar
bigx
 
Posts: 15
Joined: Thu Sep 05, 2013 1:37 pm

Re: Get the serial number of an Arduino

Post by bigx »

Hello SV_Zanshin!

Thanks for this information. Any idea of how to generate a unique mac address from this serial number?

Regards

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: Get the serial number of an Arduino

Post by Franklin97355 »

Is this for your own use or for a product you plan to sell?

User avatar
bigx
 
Posts: 15
Joined: Thu Sep 05, 2013 1:37 pm

Re: Get the serial number of an Arduino

Post by bigx »

Hello Franklin,

Well at first it is for my own use. Is there a conflict between what I want to achieve and selling a product?


Regards

User avatar
adafruit2
 
Posts: 22200
Joined: Fri Mar 11, 2005 7:36 pm

Re: Get the serial number of an Arduino

Post by adafruit2 »

when you get a product you'll need to purchase a block of MAC addresses, its pretty easy - https://standards.ieee.org/products-ser ... index.html
that'st he *only* way to get official MAC addresses if the chip you bought doesnt come with one

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”