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.
Unique identifier for netduino boards: Is there a serial no burned in?
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!
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.
>> 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....
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.
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.
>> 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...
>> 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...