Difference between revisions of "SW Service/IoTCore"

From ESS-WIKI
Jump to: navigation, search
(Add contents)
(Add contents)
Line 6: Line 6:
 
! Component !! Reqirement
 
! Component !! Reqirement
 
|-
 
|-
| Processor || 400 MHz or faster
+
| align="center" | Processor || 400 MHz or faster
 
(x86 requires PAE, NX and SSE2 support)
 
(x86 requires PAE, NX and SSE2 support)
 
|-
 
|-
| RAM || 256 MB or more for Headless mode
+
| align="center" | RAM || 256 MB or more for Headless mode
 
512 MB or more for Headed mode
 
512 MB or more for Headed mode
  
 
(More RAM may be required depending on resolution and video implementation)
 
(More RAM may be required depending on resolution and video implementation)
 
|-
 
|-
| Storage || 2 GB or more
+
| align="center" | Storage || 2 GB or more
 
|}
 
|}
  
==BIOS settings==
+
==BIOS settings for Advantech devices==
 
{|
 
{|
 
|-
 
|-
Line 34: Line 34:
  
 
==Development Environment==
 
==Development Environment==
 +
To start the developement for IoTCore, there are some kits and packages to install:
 +
# The latest version of Windows 10.
 +
# The latest version of kits and tools that are needed; refer to the table below.
 +
# [https://msdn.microsoft.com/library/windows/apps/xaml/dn706236.aspx Enable developer mode]
 +
 +
{| class="wikitable"
 +
|-
 +
! Task !! What kits and tools you will need
 +
|-
 +
| Flashing IoTCore image ||
 +
Windows 10 IoT Core for MinnowBoard Max [[http://ms-iot.github.io/content/en-US/Downloads.htm link]]<br/>
 +
<span style="color:Silver">(This is a package that include flashing and control tools)</span>
 +
|-
 +
| Controling IoTCore system ||
 +
Windows 10 IoT Core for MinnowBoard Max [[http://ms-iot.github.io/content/en-US/Downloads.htm link]]<br/>
 +
<span style="color:Silver">(This is a package that include flashing and control tools)</span>
 +
|-
 +
| Developing apps ||
 +
Windows SDK [[https://msdn.microsoft.com/en-US/windows/hardware/dn913721(v=vs.8.5).aspx link]]<br/>
 +
Visual Studio 2015 Update 1 [[https://msdn.microsoft.com/en-US/windows/hardware/dn913721(v=vs.8.5).aspx link]]<br/>
 +
IoTCore Project Templates [[https://visualstudiogallery.msdn.microsoft.com/55b357e1-a533-43ad-82a5-a88ac4b01dec link]]
 +
|-
 +
| Developing drivers ||
 +
Windows WDK [[https://msdn.microsoft.com/en-US/windows/hardware/dn913721(v=vs.8.5).aspx link]]<br/>
 +
Visual Studio 2015 Update 1 [[https://msdn.microsoft.com/en-US/windows/hardware/dn913721(v=vs.8.5).aspx link]]<br/>
 +
|-
 +
| Developing IoTCore ||
 +
Windows ADK [[https://msdn.microsoft.com/en-US/windows/hardware/dn913721(v=vs.8.5).aspx link]]<br/>
 +
Windows WDK [[https://msdn.microsoft.com/en-US/windows/hardware/dn913721(v=vs.8.5).aspx link]]
 +
 +
|}
 +
 
==Flash image==
 
==Flash image==
 
You can flash the IoTCore image into harddisk, USB disk or SD card.
 
You can flash the IoTCore image into harddisk, USB disk or SD card.
Line 47: Line 79:
  
 
==App developement==
 
==App developement==
===UWP===
+
===UWP app===
 
===Console app===
 
===Console app===
  
Line 59: Line 91:
 
:2. Switch to the '''Apps''' page
 
:2. Switch to the '''Apps''' page
 
:3. Select the following files to deploy
 
:3. Select the following files to deploy
::: ''*.appx'' or ''*.appxbundle'' to <code> AppX </code>
+
::: ''appx'' or ''appxbundle'' files to <code> AppX </code>
::: ''*.cer'' to <code> Certificate </code>
+
::: ''cer'' files to <code> Certificate </code>
 
::: The files under the Dependencies folder, and other dependence to <code> Dependencies </code>
 
::: The files under the Dependencies folder, and other dependence to <code> Dependencies </code>
 
:4. The message at bottom of the page will show the installing status; when it shows "Done", you should be able to find it in the list of installed app.
 
:4. The message at bottom of the page will show the installing status; when it shows "Done", you should be able to find it in the list of installed app.
Line 78: Line 110:
 
===SSH Connection===
 
===SSH Connection===
 
===Web management===
 
===Web management===
 +
 +
 
==Common command line utils==
 
==Common command line utils==
 +
Refer to Microsoft [http://ms-iot.github.io/content/en-US/win10/tools/CommandLineUtils.htm Windows 10 IoT Core Command Line Utils] for more information.
 +
 
==Sample code==
 
==Sample code==
===UWP===
+
Refer to Microsoft [http://ms-iot.github.io/content/en-US/win10/StartCoding.htm Docs and Samples] for more sample code.
 +
===UWP app===
 +
* Hello, World! ([http://ms-iot.github.io/content/en-US/win10/samples/HelloWorld.htm C#])
 +
* IoT Core Default App ([http://ms-iot.github.io/content/en-US/win10/samples/IoTDefaultApp.htm C#])
 +
* IoT Browser Sample ([http://ms-iot.github.io/content/en-US/win10/samples/IoTBrowser.htm C#])
 +
* Digital Signage Sample ([http://ms-iot.github.io/content/en-US/win10/samples/DigitalSignage.htm C#])
 +
* AllJoyn Connectivity([http://ms-iot.github.io/content/en-US/win10/AllJoyn.htm C#/Javascript])
 +
 
 
===Console app===
 
===Console app===
 +
* Memory Status ([http://ms-iot.github.io/content/en-US/win10/samples/ConsoleApp.htm C++]/[http://ms-iot.github.io/content/en-US/win10/samples/Nodejs.htm Node.js])
 +
 +
===Driver===
 +
* GPIO universal driver for MBM ([http://ms-iot.github.io/content/en-US/win10/samples/DriverLab.htm C++])

Revision as of 08:04, 5 February 2016

Windows 10 IoT Core is a version of Windows 10 that is optimized for smaller devices with or without a display. For more detail information about IoTCore, refer to Learn about Windows 10 IoT Core

Hardware Reqirement

Component Reqirement
Processor 400 MHz or faster

(x86 requires PAE, NX and SSE2 support)

RAM 256 MB or more for Headless mode

512 MB or more for Headed mode

(More RAM may be required depending on resolution and video implementation)

Storage 2 GB or more

BIOS settings for Advantech devices

Advanced
Boot option filter [UEFI and Legacy]
Video [UEFI]
Boot
Boot option #1 [Windows Boot Manager]
Boot option #2 [Your disk]

Development Environment

To start the developement for IoTCore, there are some kits and packages to install:

  1. The latest version of Windows 10.
  2. The latest version of kits and tools that are needed; refer to the table below.
  3. Enable developer mode
Task What kits and tools you will need
Flashing IoTCore image

Windows 10 IoT Core for MinnowBoard Max [link]
(This is a package that include flashing and control tools)

Controling IoTCore system

Windows 10 IoT Core for MinnowBoard Max [link]
(This is a package that include flashing and control tools)

Developing apps

Windows SDK [link]
Visual Studio 2015 Update 1 [link]
IoTCore Project Templates [link]

Developing drivers

Windows WDK [link]
Visual Studio 2015 Update 1 [link]

Developing IoTCore

Windows ADK [link]
Windows WDK [link]

Flash image

You can flash the IoTCore image into harddisk, USB disk or SD card.

For how to do this,

  1. Launch command prompt with Administrtor permission.
  2. Use diskpart to know which index number is the desired disk to flash image into. Beware that do not mistaken the index number!
  3. Execute command:
"C:\Program Files (x86)\Microsoft IoT\dism\dism.exe" /Apply-Image /ImageFile:"{PATH_OF_IMAGE_FILE}" /ApplyDrive:\\.\PHYSICALDRIVE{INDEX_NUMBER_OF_DISK} /SkipPlatformCheck

* Note that {PATH_OF_IMAGE_FILE} is the path of the image file (*.ffu), and {INDEX_NUMBER_OF_DISK} is the index number of the disk that get in step 2.

App developement

UWP app

Console app

App installation

There are 2 ways to do this, your device must have net accessibility.

Method(a) 
Use script to install an app, app will be installed at next boot up: see here for detail
Method(b) 
Use web management tool to install an app, app will be installed right away:
1. Connect to Windows Device Portal through your browser
2. Switch to the Apps page
3. Select the following files to deploy
appx or appxbundle files to AppX
cer files to Certificate
The files under the Dependencies folder, and other dependence to Dependencies
4. The message at bottom of the page will show the installing status; when it shows "Done", you should be able to find it in the list of installed app.

Headed/Headless mode

Windows IoT Core can be configured for either headed or headless mode. For more information, and how to switch the mode, refer to Headed/Headless mode.

headed mode
UI stack is available for fully interactive apps.
headless mode
The UI stack is disabled and apps are not interactive. This reduces the amount of system resources used. Devices that don’t need UI functionality can be set to headless mode.

System Management

PowerShell Connection

SSH Connection

Web management

Common command line utils

Refer to Microsoft Windows 10 IoT Core Command Line Utils for more information.

Sample code

Refer to Microsoft Docs and Samples for more sample code.

UWP app

  • Hello, World! (C#)
  • IoT Core Default App (C#)
  • IoT Browser Sample (C#)
  • Digital Signage Sample (C#)
  • AllJoyn Connectivity(C#/Javascript)

Console app

Driver

  • GPIO universal driver for MBM (C++)