Search Results for

    Show / Hide Table of Contents

    Device Information


    Dynamically configure your system through these services that acquire DeviceInformation.

    Returns devices UniqueId

    var deviceId = DeviceInformation.GetUniqueId();
    

    Returns DeviceName.

    Debug.WriteLine(DeviceInformation.DeviceName);
    

    Returns devices firmware Version.

    var major = (ushort)((DeviceInformation.Version >> 48) & 0xFFFF);
    var minor = (ushort)((DeviceInformation.Version >> 32) & 0xFFFF);
    var build = (ushort)((DeviceInformation.Version >> 16) & 0xFFFF);
    var revision = (ushort)((DeviceInformation.Version >> 0) & 0xFFFF);
    Debug.WriteLine(major +"."+ minor +"."+ build +"."+ revision);
    

    Detects which DebugInterface is in use.

    if (DeviceInformation.DebugInterface == DebugInterface.Usb)
       Debug.WriteLine("Debug is in USB mode");
    

    Returns ManufacturerName information.

    Debug.WriteLine(DeviceInformation.ManufacturerName);
    

    Device Name

    Devices have common name that is they ship with. This can be read using DeviceInformation.DeviceName. This name also shows on the USB debug interface. The name can changed only once through DeviceInformation.SetPersistDeviceName("New Device Name"). Once set, a complete device erase is required before changing the name again.

    Tip

    Since Windows caches the name when loading the driver, Windows Device Manager will still show the old name. Simply right-click on the device and uninstall the driver. The next time it installs the drivers it will update with the new name.

    • Improve this Doc
    ☀
    ☾
    In This Article

    Back to top

    Back to top Copyright © 2021 GHI Electronics, LLC
    Generated by DocFX