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 board ID and how to get it via NETMF 4.2 or 4.3

MAC

Best Answer baxter, 13 May 2013 - 05:10 PM

 Dim NetInfo As NetworkInterface = NetworkInterface.GetAllNetworkInterfaces()(0) Dim IPaddress As String = NetInfo.IPAddress Dim DnsAddresses() As String = NetInfo.DnsAddresses Dim GatewayAddress As String = NetInfo.GatewayAddress Dim PhysicalAddress As Byte() = NetInfo.PhysicalAddress <-- MAC Dim IsDhcpEnabled As Boolean = NetInfo.IsDhcpEnabled
Go to the full post


  • Please log in to reply
3 replies to this topic

#1 rht

rht

    Member

  • Members
  • PipPip
  • 15 posts

Posted 13 May 2013 - 04:41 PM

Hi, 

 

OK, so it looks like MFDeploy.exe can nuke anything on the board. Is there indeed no perennial/permanent id? If so, how to get at it? If not, what is the suggested approach to be able to uniquely identify a board when connecting to a network? Is setting and tracking the MAC of the on-board ethernet ourselves the only way? How to I retrieve the current MAC via NETMF?



#2 rht

rht

    Member

  • Members
  • PipPip
  • 15 posts

Posted 13 May 2013 - 05:03 PM

            //http://msdn.microsof...eminfo.systemid(v=vs.102).aspx
            // Stores information that is unique to each individual hardware system (device) -- meaning device type or device instance I hope. Are all 3 required, or just the SKU?
            //From the NETMF 4.3 emulator: 
            var sysOEM = Microsoft.SPOT.Hardware.SystemInfo.SystemID.OEM; // => 1 
            var sysModel = Microsoft.SPOT.Hardware.SystemInfo.SystemID.Model; // => 2
            var sysSKU = Microsoft.SPOT.Hardware.SystemInfo.SystemID.SKU; // => 3


#3 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 13 May 2013 - 05:10 PM   Best Answer

 Dim NetInfo As NetworkInterface = NetworkInterface.GetAllNetworkInterfaces()(0) Dim IPaddress As String = NetInfo.IPAddress Dim DnsAddresses() As String = NetInfo.DnsAddresses Dim GatewayAddress As String = NetInfo.GatewayAddress Dim PhysicalAddress As Byte() = NetInfo.PhysicalAddress <-- MAC Dim IsDhcpEnabled As Boolean = NetInfo.IsDhcpEnabled


#4 rht

rht

    Member

  • Members
  • PipPip
  • 15 posts

Posted 13 May 2013 - 05:18 PM

Thanks!

http://msdn.microsof...(v=vs.102).aspx







Also tagged with one or more of these keywords: MAC

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.