I need to get the processor serial number of a Raspberry Pi2 that is running windows 10 IoT.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I've extracted a code sample from the Microsoft's IoT Sample (IoTCoreDefaultApp) that might helpful to you to extract device information (unfortunately, processor serial number never exposed for programming).
How to get Windows IoT device's information:
Use this code to get device information.
Usually this is within the Windows.System.Profile.HardwareIdentification namespace. Unfortunately, that's one of the unsupported namespaces with Win10 IoT Core.
Instead, to identify the metal, I'm using info from the network adaptor(s):
Of course, this is not completely error proof, but, so far, the only way I can see to get a reasonably reliable device ID.
The serial number can be found in /proc/cpuinfo
or you can use Basic Bash piping ie, cat /proc/cpuinfo | grep Serial | cut -d ':' -f 2