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

Re: Windows 10 Core IoT FAQ (Unofficial)

Sun Oct 25, 2015 6:48 pm

66. Where can I find the GitHub extensions to Visual Studio 2015

https://visualstudio.github.com/
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:53 pm

67. Where can I find other 'stuff' that I can build and run on Windows 10 Core IoT

https://github.com/Microsoft/Windows-universal-samples

A surprising number of the projects at the above url (which is for Core 10 aka The Big one) will run after you have sorted out the screen sizes, changed any FilePickers to constant path values, etc.

Some are impossible as they reference things that are only available on the Desktop.

also - The Windows 10 UI Platform
https://github.com/Windows-XAML
and
http://embedded101.com/
Last edited by ricl on Tue Oct 27, 2015 4:52 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)

Mon Oct 26, 2015 10:17 am

68. Can I use JavaScript frameworks from a C#/UWP application

http://blogs.msdn.com/b/eternalcoding/a ... ation.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)

Mon Oct 26, 2015 11:18 am

69. I am comming from a Linux background, what do I need to know about the basic, inner, workings of Windows 10 Core IoT


Core IoT comprises three main things

1. A full (well the 'make my Desktop look like a Server' stuff is not there, so not completely full) 32 bit ARM NT Kernel
2. A 'managed' or UWP application space
3. A GUI/Screen and Keyboard/Mouse/Touch(?) interface

Only 2 is hooked to 3, and that, only one application at any given time (i.e. only one Foreground App).

1 is the land of

Code: Select all

int main(int argc, TCHAR* argv[], TCHAR* envp[])
{
...
}

and

void WINAPI WinMain(DWORD argc, PTSTR argv[])
{
...
}

etc.
everything else is in 2.

You have Admin and User (but not System) rights to the Kernel in 1
a 2 application runs at User level, each in their own individual 'sandbox'
You can schedule 1 applications at startup, timed, etc. by using schtasks to run them at either Admin or User level
You can schedule 2 applications to run at startup by using IoTStartup (only one Foreground App though)

P.S. You can get a 2 application to run in an Admin 'sandbox' if you start Visual Studio with Admin rights on your Desktop but there appears to be no way to get IoTStartup to run it with Admin privileges on the PI for you afterwards. If anyone knows how....
Last edited by ricl on Tue Oct 27, 2015 7:23 pm, edited 12 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)

Mon Oct 26, 2015 12:04 pm

70. All this GUI stuff in Windows 10 Core IoT is quite tricky. Are there any good design patterns out there that might make it easier

https://github.com/Windows-XAML/Template10/wiki

https://channel9.msdn.com/coding4fun/bl ... riesInArea
Last edited by ricl on Wed Oct 28, 2015 12:30 am, 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)

Mon Oct 26, 2015 5:49 pm

71. How can I use the hardware Serial Port Rx/Tx on the Pi under Windows 10 Core IoT (10556 and up)

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

Wiring the serial connection

You have two options for wiring up your board:
1.using the On-board UART controller
2.using a USB-to-TTL adapter cable such as this one
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)

Mon Oct 26, 2015 11:58 pm

72. How do I get a list of all the Win32 applications, tasks, etc. that run at startup or whatever

In PS and SSH

Code: Select all

[192.168.1.19]: PS C:\> schtasks
or

Code: Select all

[192.168.1.19]: PS C:\> schtasks /query /FO LIST
if you want a list
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)

Tue Oct 27, 2015 12:38 am

73. How do I get a list of all the Power Shell commands and functions I can run

PS

Code: Select all

[192.168.1.19]: PS C:\> get-command
Beware! This list contains a few things that are not really present on the Pi. Treat as a guide not a reference
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)

Tue Oct 27, 2015 12:52 am

74. How do I get further help on all those commands and functions

Code: Select all

Get-Help {something}
Again beware! Help also contains information about stuff that is not really present on the Pi.

So, also a Guide not a Reference
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)

Tue Oct 27, 2015 2:22 am

75. How do I get a (long) list of what is and is not being allowed through the Pi's TCP/IP Firewall

PS or SSH

Code: Select all

netsh advfirewall firewall show rule name=all verbose
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)

Tue Oct 27, 2015 9:51 am

76. I was planning to store data onto the SD Card. But, I had heard/read that the SD Card will only support a number of write actions before it becomes corrupt/unusable. I have seen figures for max number of writes from 100,000 to 1,000,000.

Although you will see data about maximum number of writes you should understand that is per cell/block. The OS (and all flash drivers) have what is called 'wear levelling' which means that any new block writes are distributed across the whole chip (i.e. it never writes a new block in the same place until it has used all the others blocks before hand).

This means that you need to multiply the number of writes figure by the size of the card to get a meaningful answer. If you then take the number/size of writes/sec/minute/hour and divided it into the card size times the manufacturers maximum write data before failure you can get a relevant figure.

The short answer is that, even if you are writing data every second, it will normally take a few years/decades to get to the figure you have calculated above.

External USB drives are probably a better place to place big data (if you have any) though, because filling up the c: drive on IoT is likely to be 'a very, very bad thing' (tm).

If you are really, really worried, just replace the card every year and you'll be fine (and buy your SD cards from a reliable manufacturer - not a cheap item found on Ebay).

If you want a manufacturers take on this, then this is as good as any.

http://media.kingston.com/pdfs/MKF_283. ... ide_US.pdf
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)

Tue Oct 27, 2015 12:53 pm

77. Are there any examples of Generic Bluetooth Serial including Passkey Pairing

https://social.msdn.microsoft.com/Forum ... WindowsIoT

This blog presents a Universal Windows App that connects to an embedded Bluetooth device over the Bluetooth Serial Profile using a genetic Bluetooth USB dongle. This app will run on both a Windows 10 IoT-Core devices such as a Raspberry PI2 and a Windows 10 Desktop. The blog covers in detail the key issues with pairing including where a passkey is required with a RPI2 as well as a Bluetooth primer.

Code available on Codeplex and GitHub.

http://embedded101.com/Blogs/David-Jone ... erial-App-
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)

Tue Oct 27, 2015 4:45 pm

78. How do I get really detailed (and I mean detailed) information about how Core IoT is using threads , modules, etc.given that the Visual Studio tools don't work yet here on the Pi.

Well this is NT we're talking about so all the old favourites that have been used in CE land and Desktop before we had the now familiar VS toolkit all (well mostly all) still work.

So head over to

https://msdn.microsoft.com/en-gb/librar ... s.85).aspx

change it to output to a file instead of the console (on E:\ I would suggest) and find out.:

Code: Select all

=====================================================
PROCESS NAME:  IoTCoreDefaultApp.exe
-------------------------------------------------------
Process ID = 0x00000C90  Thread count = 22  Parent process ID = 0x00000284  Priority base = 8  Priority class = 32
     MODULE NAME: IoTCoreDefaultApp.exe
     Executable = C:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\IoTCoreDefaultAppVS.Debug_ARM.Richard\IoTCoreDefaultApp.exe
     Process ID = 0x00000C90  Ref count (g) = 0xFFFF  Ref count (p) = 0xFFFF  Base address = 0x00BE0000  Base size = 28672

     MODULE NAME: ntdll.dll
     Executable = C:\windows\SYSTEM32\ntdll.dll
     Process ID = 0x00000C90  Ref count (g) = 0xFFFF  Ref count (p) = 0xFFFF  Base address = 0x76F70000  Base size = 1396736

     MODULE NAME: KERNELBASE.dll
     Executable = C:\windows\system32\KERNELBASE.dll
     Process ID = 0x00000C90  Ref count (g) = 0xFFFF  Ref count (p) = 0xFFFF  Base address = 0x76D60000  Base size = 1421312
...
...
Last edited by ricl on Tue Oct 27, 2015 7:16 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)

Tue Oct 27, 2015 6:41 pm

79. How do I get the MAC address of my Pi in C#

http://embedded101.com/BruceEitman/entr ... spberry-Pi
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)

Tue Oct 27, 2015 6:45 pm

80. Why is My App Package Name a GUID?

http://embedded101.com/BruceEitman/entr ... ame-a-guid
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)

Tue Oct 27, 2015 10:48 pm

81. Easily access the GPIO pins in a UWP C++ application

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

82. Easily access the GPIO pins in a UWP C# application

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

83. Easily access the I2C bus in a UWP C++ application

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

84. Easily access the I2C bus in a UWP C# application

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

85. Easily access the I2C bus in a node.js application

https://github.com/ms-iot/samples/tree/ ... on/Node.js

86. Easily access the I2C bus in a Python application

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

87. Easily access the I2C bus in a VB application

https://github.com/ms-iot/samples/tree/ ... rStationVB
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)

Tue Oct 27, 2015 10:54 pm

88. Easily access the SPI bus in a C# application

https://github.com/ms-iot/samples/tree/ ... SPIDisplay
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)

Wed Oct 28, 2015 12:00 am

89. I'm having problems with my async code, sometimes it works and sometimes it doesn't. Any good tools out there to help with this problem

Try
https://github.com/ljw1004/async-mr-flakey

C# Class which can be directly included in your project
https://github.com/ljw1004/async-mr-fla ... rFlakey.cs

VB Module which can be directly included in your project
https://github.com/ljw1004/async-mr-fla ... rFlakey.vb

You may need to move the popup around to get it into an acceptable position for small screens by modifying the code but the rest of it works exactly as expected
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)

Wed Oct 28, 2015 12:11 am

90. I'm having occasional problems with async code in my buttons 'click' (or wherever)

Make sure you disable the button (or whatever) whilst doing async calls (or handle it another way) so that your code is not unexpectedly re-entrant if the user double 'clicks' it during the operation

https://msdn.microsoft.com/en-us/librar ... 2147217396
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)

Wed Oct 28, 2015 12:20 am

Last edited by ricl on Wed Oct 28, 2015 12:31 am, 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)

Wed Oct 28, 2015 12:26 am

92. Connect a flock of Core IoT devices to the Cloud in a manageable way

https://channel9.msdn.com/Shows/Cloud+C ... vier-Bloch
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)

Wed Oct 28, 2015 12:29 am

93. A Raspberry PI 2, Azure Service Bus and Microsoft Band walk into a...

https://channel9.msdn.com/coding4fun/bl ... alk-into-a
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)

Wed Oct 28, 2015 12:32 am

94. Intro to ADCs and Analog Sensor with Light Sensor Hands-On-Lab for Windows IoT Core

https://channel9.msdn.com/Blogs/WinCode ... s-IoT-Core
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)

Wed Oct 28, 2015 10:32 am

95. Use my Pi as a servo controller

Raspberry Pi Window 10 IOT Servo Control
https://www.youtube.com/watch?v=vK-j7A7KLXU
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)

Wed Oct 28, 2015 10:35 am

96. Find lots of recent videos about using Windows 10 Core IoT

https://www.youtube.com/results?lclk=mo ... ters=month
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 5 guests