Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Unique identifier for netduino boards: Is there a serial no burned in?


  • Please log in to reply
12 replies to this topic

#1 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 06 February 2012 - 06:04 AM

Greetings! On netduino plus projects, I can uniquely identify a board by using the MAC address. Works nicely! If I use a plain netduino.... no ethernet... no mac... Is there a CPU serial no, or other unique attribute that I can read from code? thanks!

#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 06 February 2012 - 09:03 AM

No, there is currently no unique identification number in the netduinos. You could give them different names though, but I'm not sure if that helps?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 Paul Newton

Paul Newton

    Advanced Member

  • Members
  • PipPipPip
  • 724 posts
  • LocationBerkshire, UK

Posted 06 February 2012 - 12:47 PM

No, there is currently no unique identification number in the netduinos.
You could give them different names though, but I'm not sure if that helps?

Stefan

How do you give the Netduino a name?
Is it permanent (in FLASH)?

Paul

#4 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 06 February 2012 - 01:55 PM

1. Open MFDeploy.exe (in C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Tools or equavelent) 2. USB 3. select your Netduino in the pulldown. 4. Go to Target -> Configuration -> USB Name I'm not sure if it's also possible to read out this value from Netduino code, but it's stored on the hardware, outside the code space, that's for sure. I used this and renamed my Netduinos to Netduino41, Netduino42, NetduinoPlus41, etc.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#5 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 06 February 2012 - 02:49 PM

If this name can be read from NETMF code, then yes, this would work. Where do I look for info on that?

#6 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 06 February 2012 - 03:19 PM

If this name can be read from NETMF code, then yes, this would work.

Where do I look for info on that?

Perhaps this could be of help:
http://forums.netdui...dpost__p__13202

It shows how to read/write the internal flash memory. I would consider reading from your Netduino code safe.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#7 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 06 February 2012 - 08:03 PM

>> It shows how to read/write the internal flash memory. I would consider reading from your Netduino code safe. Hmmmm, that is awfully low level. When we "name" the netduino via mfdeploy, that is just at the low level, and netmf has no visibility to it? I like the naming part.... I am not sure about the reading of the name.... so far....

#8 willgeorge

willgeorge

    Member

  • Members
  • PipPip
  • 25 posts

Posted 07 February 2012 - 08:22 AM

Maybe I am way out in left field for what you want do do? Why not just add a number or message in your Netduino code that is returned to the external application when asked? Yes, you would have to always be sure that this code is included when changing your Netduino's application but it would be simple to implement.

#9 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 07 February 2012 - 02:42 PM

I am going to have one or two dozen (or maybe more! but 12-24 for sure) netduinos all talking to one server. Each netduino needs to identify itself, as the server will have to identify the data from each one. So how does the netduino identify itself.... Mac... works! But only on the plus board. The question is: What to do on the non plus boards? On Windows, you can read the hard drive SN, and even I think the cpu SN. What to do on netduino? The code will be the same on all.

#10 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 07 February 2012 - 02:46 PM

Hi samjones, How do the Netduinos talk to the server? Do they have SD cards? Chris

#11 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 07 February 2012 - 03:01 PM

>> How do the Netduinos talk to the server? http get requests over ethernet (now) over cellular (next rev) >> Do they have SD cards? Yes, I thought to do this, but remember: the question is: how to do an id on the plain netduino. On the Plus board, I can use mac, which works great. But on plain netduino (used for cellular, we expect), no mac.... and no SD slot...

#12 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 07 February 2012 - 03:09 PM

Hi samjones, On the regular Netduinos, can you read their MAC address from the network adapter (cellular)? Chris

#13 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 07 February 2012 - 04:46 PM

>> On the regular Netduinos, can you read their MAC address from the network adapter (cellular)? Don't know... haven't started building that side of it yet... If there was a generic approach (via reading cpu sn, or naming netduino), I would use it universally across the board. Sounds like I am stuck figuring that out when I get there...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.