2016年9月25日 星期日

UWP IoT Core shutdown device 關機

English
========================================================================
Today we will implement the shutdown function on Win 10 IoT Core.

1. Add below code in Package.appxmanifest file.

2. Add reference named "Windows IoT Extensions for the UWP" in project.

3. Add using and below code in project.


4. The device will shutdown when button click.



中文
========================================================================
今天要在 Win 10 IoT Core 上實現關機的動作。

1. 首先要開啟權限,打開 Package.appxmanifest 檔案,加入以下程式碼。

2. 加入名為 "Windows IoT Extensions for the UWP" 參考進入專案中。

3. 加入使用和以下程式碼至 MainPage.xaml.cs。


4. 當按鈕按下後,就會進行關機的動作。

2016年9月1日 星期四

Win10 IoT Core connect to the Ethernet by 3G card (Quectel UC20G) 網卡連線

English
========================================================================
Today I'll introduce how to connect on ethernet by using Quectel UC20G 3G card.

1. Run the “Windows PowerShell ISE” with administrator privileges.

2. Enter below commands to link with IoT Core device. Before this step, you need to turn on the IoT Core device and make it on the ethernet to get it's IP. The below commands will remote control the IoT Core device with administrator privileges.

    2-1 Net start WinRM.
    2-2 Set-Item WSMan:\localhost\Client\TrustedHosts -Value device'sIP.

    2-3 Enter-PSSession device'sIP -Crendential device'sIP\administrator.

3. Enter below commands to get SIM card's info.
    3-1 Netsh mbn show ready *

4. Enter below commands to line up UC20G. You need to modify the profile values. After modify the profile, you need to copy it to your USB storage and insert the USB storage to IoT Core device.

       4-1 Netsh mbn add profile interface="Cellular" name="D:\profile.xml"

       4-2 Netsh mbn connect interface="Celluar" connmode=name name="Quectel Wireless Ethernet Adapter"

5. You can see the UC20G is line up



中文
========================================================================
今天我們要在 Win 10 IoT Core 上,使用 Quectel UC20G 網卡進行連線的實作。

1. 使用管理者身分執行 PowerShellISE

2. 輸入以下的命令,連線到 IoT Core 裝置上
        2-1 Net start WinRM
        2-2 Set-Item WSMan:\localhost\Client\TrustedHost - Value device'sIP
        2-3 Enter-PSSession device'sIP -Crenditial device'sIP\administrator

3. 輸入以下命令去讀取 SIM 卡資訊
        3-1 Netsh mbn show ready *

4. 修改連線所需的 Profile.xml,並使裝置連線

        4-1 Netsh mbn add profile interface="Cellular" name="D:\profile.xml"

        4-2 Netsh mbn connect interface="Cellular" connmode=name name="Quectel Wireless Ethernet Adapter"

5. 透過網頁可以看到 UC20G 連線成功

OS Operating System 作業系統 恐龍書 筆記分享

發現一個作業系統說明的網站, 對於 process vs thread, semaphore vs mutex, deadlock 說明很詳細, 有興趣的人可以去以下的網頁逛逛。 附上網址連結: link   link2