ATSAMR21

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dear All,

The ATSAMR21 xplained development board contains an ATSAMR21G18A. The ATSAMR21G18A says this device has an unique serial number.

Does the Bitcloud stack uses this unique serial number for identification within the Bitcloud network? Or does the Bitcloud stack try to get the UID from an external component like the EDBG?

 

My point being, for a custom board, do i need to redefine the function that retrieves the UID? Or can i reuse the piece of code that retrieves   the UID?

 

Kind regards,

Marc

Last Edited: Fri. Oct 16, 2015 - 12:24 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

msnip wrote:
The ATSAMR21G18A says this device has an unique serial number.

Does it?

 

I think you'll find that the Xplained-Pro board has the "unique serial number" - not the ATSAMR21G18A device ...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dear Awneil,

Im not kiddin. We chose this device partially cause of this feature.

 

Read page 27 of the ATSAMR21G18A datasheet:

 

8.3.3 Serial Number
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: 0x0080A00C
Word 1: 0x0080A040
Word 2: 0x0080A044
Word 3: 0x0080A048
The uniqueness of the serial number is guaranteed only when using all 128 bits.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oops, you're right - I should remember that, because I've used it!!

 

blush

 

The board serial number is distinct from the chip serial number.

 

I don't know about bitcloud, but I think the LwMesh examples get the MAC Address from the EDBG.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

BitCloud does not "support" this UID because there is not much to support. You can read out the contents of this UID yourself and supply to relevant BitClolud APIs.

 

Note that this UID is guaranteed to be unique only when all 128 bits are used and most of the things in ZigBee need 64-bit unique number, so you will have to do some hashing.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Note also that the 4 words are not all contiguous - so you can't just read them in a loop...