0

Get the serial number of an Arduino
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Get the serial number of an Arduino

by bigx on Thu Oct 18, 2018 1:27 am

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

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

Re: Get the serial number of an Arduino

by SV_Zanshin on Sun Oct 21, 2018 9:44 am

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

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

Re: Get the serial number of an Arduino

by bigx on Mon Oct 22, 2018 3:03 am

Hello SV_Zanshin!

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

Regards

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

Re: Get the serial number of an Arduino

by franklin97355 on Mon Oct 22, 2018 3:17 am

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

franklin97355
 
Posts: 19207
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Get the serial number of an Arduino

by bigx on Mon Oct 22, 2018 3:36 am

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

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

Re: Get the serial number of an Arduino

by adafruit2 on Mon Oct 22, 2018 2:58 pm

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

adafruit2
Site Admin
 
Posts: 17487
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.