ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 9:09 am

43. How do I stay up with the very latest software examples being written for Windows 10 Core IoT

Try looking at https://github.com/ms-iot/samples/tree/develop which is the 'under development' side of the main master branch at https://github.com/ms-iot/samples/tree/master.

This is where all the changes are happening to the samples Microsoft are sharing with the world. Right up to today. See the changes as they happen in real time if you Fork the overall project!

You can switch between the two branches by using the 'Branch' drop down in the upper left of the page.

Be careful though, these are still work in progress so some things may not work quite as expected.

Useful for seeing the sort or errors/corrections others are making (so that you don't make them yourself!)
...
...
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 10:05 am

44. How do I get some really detailed information on how the NT Kernel at the heart of Windows 10 Core IoT is setup

Code: Select all

[192.168.1.19]: PS C:> get-psdrive

Name           Used (GB)     Free (GB) Provider      Root
----           ---------     --------- --------      ----
Alias                                  Alias
C                                      FileSystem    C:\
Cert                                   Certificate   \
D                                      FileSystem    D:\
E                                      FileSystem    E:\
Env                                    Environment
Function                               Function
HKCU                                   Registry      HKEY_CURRENT_USER
HKLM                                   Registry      HKEY_LOCAL_MACHINE
R                                      FileSystem    \\BILBO\RaspberryShare
S                                      FileSystem    \\BILBO\IoT
U                                      FileSystem    U:\
Variable                               Variable
WSMan                                  WSMan


[192.168.1.19]: PS C:> cd Env:
[192.168.1.19]: PS C:> dir

Name                           Value
----                           -----
ALLUSERSPROFILE                C:\ProgramData
APPDATA                        C:\Users\Administrator\AppData\Roaming
CommonProgramFiles             c:\Program Files\Common Files
CommonProgramFiles(x86)        c:\Program Files (x86)\Common Files
COMPUTERNAME                   r-iot-pi2
ComSpec                        C:\windows\system32\cmd.exe
LOCALAPPDATA                   C:\Users\Administrator\AppData\Local
NUMBER_OF_PROCESSORS           4
OS                             Windows_NT
Path                           C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\
PATHEXT                        .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE         ARM
PROCESSOR_IDENTIFIER           ARM Family 7 Model C07 Revision   5, A
PROCESSOR_LEVEL                3079
PROCESSOR_REVISION             0005
ProgramData                    C:\ProgramData
ProgramFiles                   c:\Program Files
ProgramFiles(x86)              c:\Program Files (x86)
PSMODULEPATH                   C:\Users\Administrator\Documents\WindowsPowerShell\Modules;c:\Program Files\WindowsPowerShell\Modules;c:\windows\system32\windowspowershell\v1.0\Modules
PUBLIC                         C:\Users\Public
SystemDrive                    C:
SystemRoot                     C:\windows
TEMP                           C:\Users\Administrator\AppData\Local\Temp
TMP                            C:\Users\Administrator\AppData\Local\Temp
USERDOMAIN                     r-iot-pi2
USERNAME                       Administrator
USERPROFILE                    C:\Users\Administrator
windir                         C:\windows


[192.168.1.19]: PS C:> cd HKLM:
[192.168.1.19]: PS HKLM:\> dir

    Hive: HKEY_LOCAL_MACHINE

Name                           Property
----                           --------
BCD00000000
HARDWARE
SAM
dir : Requested registry access is not allowed.
    + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACHINE\SECURITY:String) [Get-ChildItem], SecurityException
    + FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildItemCommand

SOFTWARE
SYSTEM


[192.168.1.19]: PS HKLM:\> cd system
[192.168.1.19]: PS HKLM:\system> dir


    Hive: HKEY_LOCAL_MACHINE\system


Name                           Property
----                           --------
ActivationBroker
ControlSet001
DriverDataBase                 ConfigOptions : 3
                               ConfigOwner   : OneCore
                               Version       : 167772160
                               Architecture  : 5
HardwareConfig                 LastConfig : {25ef0280-ec82-42b0-8fb6-10adccc67c02}
                               LastId     : 0
Input
Maps
MountedDevices                 \DosDevices\C:                                   : {64, 0, 66, 174...}
                               \DosDevices\U:                                   : {64, 0, 66, 174...}
                               \??\Volume{d89e812c-67de-11e5-80c6-441ea141050c} : {64, 0, 66, 174...}
                               \??\Volume{d89e812b-67de-11e5-80c6-441ea141050c} : {64, 0, 66, 174...}
                               \??\Volume{d89e8126-67de-11e5-80c6-441ea141050c} : {64, 0, 66, 174...}
                               \??\Volume{d89e8125-67de-11e5-80c6-441ea141050c} : {64, 0, 66, 174...}
                               \DosDevices\D:                                   : {64, 0, 66, 174...}
                               \??\Volume{e2a08f8c-6365-11e5-9967-806e6f6e6963} : {95, 0, 63, 0...}
                               \DosDevices\E:                                   : {95, 0, 63, 0...}
Platform
ResourceManager                MaxPriorityToReleaseWhilePausing : 37
                               TerminalResourceSetPriority      : 32
ResourcePolicyStore
RNG                            Seed : {82, 117, 110, 110...}
Select                         Current       : 1
                               Default       : 1
                               Failed        : 0
                               LastKnownGood : 1
Setup                          FactoryPreInstallInProgress : 0
                               OOBEInProgress              : 0
                               OsLoaderPath                : \
                               RestartSetup                : 0
                               SetupType                   : 0
                               SystemPartition             : \Device\HarddiskVolume1
                               SystemSetupInProgress       : 0
WPA
CurrentControlSet


[192.168.1.19]: PS HKLM:\> c:
[192.168.1.19]: PS C:>
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 10:14 am

45. Find out what 'Command Line'/'MSDOS Command'/'Linux like Command' are there in Power Shell

Code: Select all

[192.168.1.19]: PS C:\> cd alias:
[192.168.1.19]: PS Alias:\> dir

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           % -> ForEach-Object
Alias           ? -> Where-Object
Alias           ac -> Add-Content
Alias           cat -> Get-Content
Alias           cd -> Set-Location
Alias           chdir -> Set-Location
Alias           clc -> Clear-Content
Alias           clear -> Clear-Host
Alias           clhy -> Clear-History
Alias           cli -> Clear-Item
Alias           clp -> Clear-ItemProperty
Alias           cls -> Clear-Host
Alias           clv -> Clear-Variable
Alias           compare -> Compare-Object
Alias           copy -> Copy-Item
Alias           cp -> Copy-Item
Alias           cpi -> Copy-Item
Alias           cpp -> Copy-ItemProperty
Alias           cvpa -> Convert-Path
Alias           dbp -> Disable-PSBreakpoint
Alias           del -> Remove-Item
Alias           diff -> Compare-Object
Alias           dir -> Get-ChildItem
Alias           ebp -> Enable-PSBreakpoint
Alias           echo -> Write-Output
Alias           epal -> Export-Alias
Alias           epcsv -> Export-Csv
Alias           erase -> Remove-Item
Alias           exsn -> Exit-PSSession
Alias           fc -> Format-Custom
Alias           fhx -> Format-Hex                                  3.1.0.0    Microsoft.PowerShell.Utility
Alias           fl -> Format-List
Alias           foreach -> ForEach-Object
Alias           ft -> Format-Table
Alias           fw -> Format-Wide
Alias           gal -> Get-Alias
Alias           gbp -> Get-PSBreakpoint
Alias           gc -> Get-Content
Alias           gci -> Get-ChildItem
Alias           gcm -> Get-Command
Alias           gcs -> Get-PSCallStack
Alias           gdr -> Get-PSDrive
Alias           ghy -> Get-History
Alias           gi -> Get-Item
Alias           gjb -> Get-Job
Alias           gl -> Get-Location
Alias           gm -> Get-Member
Alias           gmo -> Get-Module
Alias           gp -> Get-ItemProperty
Alias           gps -> Get-Process
Alias           gpv -> Get-ItemPropertyValue
Alias           group -> Group-Object
Alias           gsv -> Get-Service
Alias           gu -> Get-Unique
Alias           gv -> Get-Variable
Alias           h -> Get-History
Alias           history -> Get-History
Alias           icm -> Invoke-Command
Alias           iex -> Invoke-Expression
Alias           ihy -> Invoke-History
Alias           ii -> Invoke-Item
Alias           ipal -> Import-Alias
Alias           ipcsv -> Import-Csv
Alias           ipmo -> Import-Module
Alias           kill -> Stop-Process
Alias           ls -> Get-ChildItem
Alias           man -> help
Alias           md -> mkdir
Alias           measure -> Measure-Object
Alias           mi -> Move-Item
Alias           mount -> New-PSDrive
Alias           move -> Move-Item
Alias           mp -> Move-ItemProperty
Alias           mv -> Move-Item
Alias           nal -> New-Alias
Alias           ndr -> New-PSDrive
Alias           ni -> New-Item
Alias           nmo -> New-Module
Alias           nv -> New-Variable
Alias           oh -> Out-Host
Alias           popd -> Pop-Location
Alias           ps -> Get-Process
Alias           pushd -> Push-Location
Alias           pwd -> Get-Location
Alias           r -> Invoke-History
Alias           rbp -> Remove-PSBreakpoint
Alias           rcjb -> Receive-Job
Alias           rd -> Remove-Item
Alias           rdr -> Remove-PSDrive
Alias           ren -> Rename-Item
Alias           ri -> Remove-Item
Alias           rjb -> Remove-Job
Alias           rm -> Remove-Item
Alias           rmdir -> Remove-Item
Alias           rmo -> Remove-Module
Alias           rni -> Rename-Item
Alias           rnp -> Rename-ItemProperty
Alias           rp -> Remove-ItemProperty
Alias           rv -> Remove-Variable
Alias           rvpa -> Resolve-Path
Alias           sajb -> Start-Job
Alias           sal -> Set-Alias
Alias           saps -> Start-Process
Alias           sasv -> Start-Service
Alias           sbp -> Set-PSBreakpoint
Alias           sc -> Set-Content
Alias           select -> Select-Object
Alias           set -> Set-Variable
Alias           si -> Set-Item
Alias           sl -> Set-Location
Alias           sleep -> Start-Sleep
Alias           sls -> Select-String
Alias           sort -> Sort-Object
Alias           sp -> Set-ItemProperty
Alias           spjb -> Stop-Job
Alias           spps -> Stop-Process
Alias           spsv -> Stop-Service
Alias           start -> Start-Process
Alias           sv -> Set-Variable
Alias           tee -> Tee-Object
Alias           type -> Get-Content
Alias           where -> Where-Object
Alias           wjb -> Wait-Job
Alias           write -> Write-Output


[192.168.1.19]: PS Alias:\> c:
[192.168.1.19]: PS C:\>
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 10:52 am

46. Where can I find a Developer’s Guide to Windows 10 (including Core IoT - even features a Raspberry Pi, briefly)

https://channel9.msdn.com/Events/Window ... ows-10-RTM

Two whole days of presentations from Andy Wigley and Shen Chauhan!
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 11:02 am

47. Does Windows 10 Core IoT support SQL

A Developer's Guide to Windows 10: (10) SQLite Local Database
https://channel9.msdn.com/Series/A-Deve ... dows-10/10

Andy Wigley's Blog about it
http://andywigleyblog.azurewebsites.net/?p=721

and on GitHub

https://github.com/Windows-XAML/201505- ... SQLiteDemo
Last edited by ricl on Mon Oct 26, 2015 12:08 pm, edited 1 time in total.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 11:08 am

48. Why is it that writing applications that contain 'async void' can be such a bad idea

https://channel9.msdn.com/Series/Three- ... -for-Async

https://channel9.msdn.com/Series/Three- ... dlers-only
...
...
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 12:00 pm

49. Test if my I2C device connected to the Pi is working correctly

https://github.com/ms-iot/samples/tree/ ... 2cTestTool

N.B. This is on the Develop tree with

"Enable I2cTestTool to work with first enumerated device."

as a change note

Code: Select all

PCWSTR Help =
    L"Commands:\n"
    L" > write { 00 11 22 .. FF }         Write bytes to device\n"
    L" > read N                           Read N bytes\n"
    L" > writeread { 00 11 .. FF } N      Write bytes, restart, read N bytes\n"
    L" > info                             Display device information\n"
    L" > help                             Display this help message\n"
    L" > quit                             Quit\n\n";

Code: Select all

    wprintf(
        L"I2cTestTool: Command line I2C testing utility\n"
        L"Usage: %s SlaveAddress [FriendlyName]\n"
        L"\n"
        L"  SlaveAddress   The slave address of the device with which you\n"
        L"                 wish to communicate. This is a required parameter.\n"
        L"  FriendlyName   The friendly name of the I2C controller over\n"
        L"                 which you wish to communicate. This parameter is\n"
        L"                 optional and defaults to the first enumerated\n"
        L"                 I2C controller.\n"
        L"\n"
        L"Examples:\n"
        L"  %s 0x57\n"
        L"  %s 0x57 I2C1\n",
        name,
        name,
        name);
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 1:07 pm

50. How do I sample a GPIO input pin at a fast rate with simple code

See https://github.com/ms-iot/samples/blob/ ... tupTask.cs

Code: Select all

// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Http;
using Windows.ApplicationModel.Background;
using Windows.Devices.Gpio;

// The Background Application template is documented at http://go.microsoft.com/fwlink/?LinkID=533884&clcid=0x409
namespace GpioInterrupt
{
    public sealed class StartupTask : IBackgroundTask
    {
        BackgroundTaskDeferral deferral;
        GpioPin pin;

        public void Run(IBackgroundTaskInstance taskInstance)
        {
            deferral = taskInstance.GetDeferral();

            pin = GpioController.GetDefault().OpenPin(6);
            //Ignore changes in value of less than 50ms
            pin.DebounceTimeout = new TimeSpan(0, 0, 0, 0, 50);                   
            pin.SetDriveMode(GpioPinDriveMode.Input);
            pin.ValueChanged += Pin_ValueChanged;
        }

        private void Pin_ValueChanged(GpioPin sender, GpioPinValueChangedEventArgs args)
        {
            System.Diagnostics.Debug.WriteLine("New pin value: " + args.Edge.ToString());
        }
    }
}
or change DebounceTimeout and go 'pedal to the metal'

See also https://ms-iot.github.io/content/en-US/ ... rmance.htm in beta
Last edited by ricl on Mon Oct 26, 2015 5:01 pm, edited 1 time in total.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sat Oct 24, 2015 1:25 pm

51. I have this really cool Win32 C/C++ service application I would like to port to Windows 10 Core IoT. Is it possible

if your code looks something like below then, over at

https://github.com/ms-iot/samples/tree/ ... oreService

in beta right now (its not on the Master tree) is :-

Code: Select all

// ConsoleApplication1.cpp : Defines the entry point for the console application.
//

#include "pch.h"

BOOL APIENTRY DllMain(
    HANDLE hModule,
    DWORD  ul_reason_for_call,
    LPVOID lpReserved)
{
    UNREFERENCED_PARAMETER(lpReserved);
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
        break;

    case DLL_PROCESS_DETACH:
        break;
    }
    return TRUE;
}

void WINAPI ServiceMain(DWORD argc, __in_ecount(argc) PTSTR argv[])
{
    UNREFERENCED_PARAMETER(argc);
    UNREFERENCED_PARAMETER(argv); 

    // See MSDN for writing Service code
    //
    //  https://msdn.microsoft.com/en-us/library/windows/desktop/ms687414(v=vs.85).aspx
    //
}

See FAQ 28 & 29 though
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 10:24 am

52. Why does my WiFi/Ethernet adapter keep getting a 169.254.0.x IP address

http://packetlife.net/blog/2008/sep/24/ ... explained/

Basically it could not find a DHCP sever on the local network and has reverted to a Microsoft provided internal IP address. For WiFi try just removing the adapter and putting it back in. This forces a full power cycle including a new DHCP request to any DHCP server it can find locally.

From PS or SSH

Code: Select all

ipconfig /release 
ipconfig /renew 
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

jboyer43
Posts: 10
Joined: Mon Jun 08, 2015 3:48 pm
Location: Canada

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 11:04 am

ricl wrote:23. What development languages are supported on Windows 10 Core IoT?

https://ms-iot.github.io/content/en-US/ ... Coding.htm

Supported languages at present are

C
C++
C#
Python
Node.js

(VB also works but is not officially supported)
...
...
I am using VB based on converting C# to VB using http://converter.telerik.com/. So far, so good. The reason behind my choice is that I have been coding in VB for 20 years, and I am VERY slow at C# or Python, which I feel may fit the PI environment the best.
Not sure what others are using, but Visual Studio 2015 Community Edition is working nicely for creating, debugging and deploying code to the PI.
Jerome

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 11:25 am

jboyer43 wrote:I am using VB based on converting C# to VB using http://converter.telerik.com/. So far, so good. The reason behind my choice is that I have been coding in VB for 20 years, and I am VERY slow at C# or Python, which I feel may fit the PI environment the best.
Not sure what others are using, but Visual Studio 2015 Community Edition is working nicely for creating, debugging and deploying code to the PI.
Yeah. I know it works it is just that Microsoft (in their wisdom) are not acknowledging that fact for some reason.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 11:29 am

53. What executables (*.exe) exist on Windows 10 Core IoT

From PS or SSH

Code: Select all

[192.168.1.19]: PS C:\> dir *.exe -s > executables.txt
[192.168.1.19]: PS C:\> type executables.txt
but see FAQ 44

Code: Select all

Path                           C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32
Executables outside of that Path will require fully qualified paths (and quotes if needed) to run or navigate to their directory and type

Code: Select all

.\myexe.exe
to run them

P.S. You can do similar commands to discover what *.com, *.sys, *.dll, *.inf, etc. are present as well
Last edited by ricl on Sun Oct 25, 2015 11:47 am, edited 3 times in total.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 11:40 am

54. What version and other info exists about these .exe, etc. on the Pi

From the Desktop in File Explorer, navigate to where the file is on the Pi, Right Click it and select Properties. Select the Details tab.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 12:08 pm

55. Where are the Known Folders stored on the Pi at Core IoT Kernel level

https://msdn.microsoft.com/library/wind ... lders.aspx

Code: Select all

c:\Users\DefaultAccount
P.S. Not all the Folders are available on Core IoT, specifically at present, no Documents Folder/Library


N.B. For 10586 on this has changed. it is now under

Code: Select all

C:\Data\Users\DefaultAccount
Last edited by ricl on Tue Dec 15, 2015 12:55 pm, edited 1 time in total.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 12:13 pm

56. Where is my apps local data/roaming data stored on the Pi at Core IoT Kernel level

Somewhere down in the directory tree that is located at

Code: Select all

c:\Users\DefaultAccount\AppData
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 12:19 pm

57. So which Known Folders ARE supported in Windows 10 Core IoT

Music library
Pictures library
Removable Storage
Videos library

see also under Visual Studio 2015, Package.appxmanifest, Capabilites to enable access

and

Store and retrieve settings and other app data
https://msdn.microsoft.com/en-us/librar ... 99098.aspx
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 12:45 pm

58. Can I just drag and drop an .exe/.sys/.whatever that I have on my Desktop/Internet source/Attic over onto the Pi

NO. In a big way.

Only executables that are compiled (and signed for UWP applications) against Windows 10 Core IoT ARM will work (and then there comes that bit about not installing things you don't trust).

IF you know for sure that what you are trying to move is a valid, trusted Windows 10 Core IoT Win32 ARM executable then .... sure. (though for UWP applications only do it though appx install. i.e. as documented, regardless - never by drag/drop).
Last edited by ricl on Sun Oct 25, 2015 1:01 pm, edited 3 times in total.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 12:58 pm

59. My Pi has occasional power loss, will the SD card get corrupted

That really depends on how much data was being written to the SD card at the time.

Nothing. Almost certainly fine
Low amounts. Possible corruption
High amounts. Almost certainly bad

Fit an uninterruptable power supply if absolutely necessary. The same is true for Linux as the warning messages on re-boot say, and for the same reasons.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 1:28 pm

60. How do I deploy my UWP application to the Pi

Deploying an App with Visual Studio
https://ms-iot.github.io/content/en-US/ ... htm#csharp

If you have an appx, cer, etc. (from someone you trust!) rather than a project you are developing yourself then

Apps
Provides install/uninstall functionality for AppX packages and bundles on your device.
https://ms-iot.github.io/content/en-US/ ... s/Webb.htm

Windows 10 Core IoT Win32 ARM executables (again from someone you trust!) can be just moved over onto the Pi. Microsoft suggest c:\deploy in their examples. I would suggest somewhere under c:/PROGRAMS/MyAppsDir/MyProject if you are looking to the future or c:\IoTWin32\MyAppsDir\MyProject perhaps.
Last edited by ricl on Tue Oct 27, 2015 12:30 am, edited 3 times in total.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 3:08 pm

61. How do I get a Win32 application to run on startup

From PS or SSH

Code: Select all

schtasks /Create /SC ONSTART /TN {MyTaskName} /TR c:\{pathtomyapp.exe}
and then reboot
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 3:53 pm

62. How do I find an example of how to talk to I2C and SPI peripherals that are on my Pi

https://github.com/ms-iot/samples/blob/ ... ge.xaml.cs
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 4:27 pm

63. Can I make a hardware watchdog or reset switch for Windows 10 Core IoT on the Pi

Making a true hardware reset watchdog board would be possible on the Pi.

https://blog.adafruit.com/2014/10/10/ma ... pberry_pi/

and some circuitry.

The only question then is - What is happening to the SD card right now?


1. Nothing. Likely to be fine

2. Occasional write. Possible corruption

3. Lots of writes. Almost certain corruption


You takes your chances.....
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 5:11 pm

64. I want to use the Arduino Wiring Project but the Guide says Serial Rx/Tx cannot be used and I need Serial Rx/Tx

Why remove Serial.write()?

Serial.write() is typically used to send raw data over the serial lines. Windows IoT Core does not currently have UART functionality (don’t worry, it’s coming soon!) so these types of calls should be avoided.


From 10556 onwards Serial Rx/Tx is supported.

http://ms-iot.github.io/content/en-US/w ... eNotes.htm
Last edited by ricl on Mon Oct 26, 2015 1:28 pm, edited 4 times in total.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 6:27 pm

65. What is this telemetry SDK I hear about (aka Application Insights)

http://blogs.windows.com/buildingapps/2 ... ev-center/
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

Return to “Windows 10 for IoT”

Who is online

Users browsing this forum: No registered users and 4 guests