Main Site Documentation

DeviceID?


#1

Is there a unique value that identifies a specific FEZ device? I’m looking for something like a DeviceID, UnitID, SerialNumber, etc as long as it is unique to each device.


#2

This seems to come up every so often on the forums. No there is not. You can determine the type of device but there isn’t a specific ID.


#3

Thanks.


#4

Well, there is but not exactly what you need. USBizi is the base of multiple devices so all these devices share the same ID.


#5

Look here: http://www.tinyclr.com/forum/2/2393/

I need to determine on which of three FEZ boards the code is running, and I do it like this:


	public enum Fez
	{
		Mini = 1,
		Domino = 2,
		Cobra = 5
	}
					
	switch ((Fez)SystemInfo.SystemID.Model)
	{
		case Fez.Miini:
			break;

		case Fez.Domino:
			break;

		case Fez.Cobra:
			break;

		default:
			throw new NotSupportedException("Unknown board!");
	}


#6

To be exact, those IDs are USBizi100, USBizi144 and EMX. What I mean is that Panda and Mini are both based on USBizi100 and so they have the same ID


#7

There is none defined by default, but you can set one up using Configuration.PermanentUserKey (see the online API http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/Index.html ) :slight_smile: