160311 IoT Core study

Edit

MS, IoT 전략 및 '윈도우 10 IoT 에디션' 출시 발표

rp2 pr3 핀매핑

GPIO
As an example, the following code opens GPIO 5 as an output and writes a digital '1' out on the pin:
Serial UART
Pin 8 - UART0 TX
Pin 10 - UART0 RX
I2C Bus
Pin 3 - I2C1 SDA
Pin 5 - I2C1 SCL
SPI Bus
Pin 19 - SPI0 MOSI
Pin 21 - SPI0 MISO
Pin 23 - SPI0 SCLK
Pin 24 - SPI0 CS0
Pin 26 - SPI0 CS1

win32 -> uwp 코드 포팅 분석툴

wifi ap profile을 pc에서 디바이스로 옮겨서 연결

# find the name of the profile you just added
PC> netsh wlan show profiles 

# This will export the profile to an XML file
PC> netsh wlan export profile name=<your profilename> 

# Connect to your device using PowerShell and add the new WiFi profile to your device by executing the following commands
DEVICE> netsh wlan add profile filename=<copied XML path>
DEVICE> netsh wlan show profiles

# Connect the Windows 10 IoT Core device to wireless network via netsh
DEVICE> netsh wlan connect name=<profile name>

# Verify that your device is connected to the wireless network and can reach the internet
DEVICE> netsh wlan show interfaces
DEVICE> ipconfig /all
DEVICE> ping /S <your WiFi adapter ip address> bing.com
PC> net start WinRM
PC> Set-Item WSMan:\localhost\Client\TrustedHosts -Value <machine-name or IP Address>

# default password: p@ssw0rd
PC> Enter-PSSession -ComputerName <machine-name or IP Address> -Credential <machine-name or IP Address or localhost>\Administrator
알려진 이슈들
  1. 문제 : Appx, NetAdapter, NetSecurity, NetTCPIP, PnpDevice. 가 없다고 나옴…
    해결책 : RemoteSigned로 실행권한 변경
    https://technet.microsoft.com/en-us/library/ee176961.aspx.
  2. Import-Module NetAdapter -Force 처럼 Force붙일것

BLE & GATT 프로필 샘플

http://www.ti.com/tool/cc2541dk-sensor
여러가지 센서가 달려있는 개발용 센서뭉치 비콘

파일공유서비스 켜기/끄기 smb프로토콜

# 파일공유끄기
DEVICE> reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\lanmanserver /v Start /t REG_DWORD /d 0x3 /f

# 파일공유켜기
DEVICE> reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\lanmanserver /v Start /t REG_DWORD /d 0x2 /f
DEVICE> start C:\Windows\System32\ftpd.exe <PATH_TO_DIRECTORY>

iot core pro 상업용 라이센스 페이지

uwp api 중에 iot core에서 사용할 수 없는것

http://ms-iot.github.io/content/en-US/win10/UnavailableApis.htm
BackgroundMediaPlayer
SpeechRecognizer
FileOpenPicker
FileSavePicker
FolderPicker
HardwareIdentification
CoreWindowDialog
InkManager

Unified Write Filter : 하드디스크 보안관(?) 사용하기

%23%20160311%20IoT%20Core%20study%0A%0A@%28%uD669%uD604%uB3D9%20%uB178%uD2B8%uBD81%29%5Biotcore%5D%0A%0A%5Btoc%5D%0A%0A%0A%0A%23%23%20MS%2C%20IoT%20%uC804%uB7B5%20%uBC0F%20%u2018%uC708%uB3C4%uC6B0%2010%20IoT%20%uC5D0%uB514%uC158%u2019%20%uCD9C%uC2DC%20%uBC1C%uD45C%0Ahttp%3A//platum.kr/archives/56200%0A%0A%0A%0A%23%23%20rp2%20pr3%20%uD540%uB9E4%uD551%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/samples/PinMappingsRPi2.htm%0A%0AGPIO%20%0AAs%20an%20example%2C%20the%20following%20code%20opens%20GPIO%205%20as%20an%20output%20and%20writes%20a%20digital%20%u20181%u2019%20out%20on%20the%20pin%3A%0A%0ASerial%20UART%0APin%208%20-%20UART0%20TX%0APin%2010%20-%20UART0%20RX%0A%0AI2C%20Bus%0APin%203%20-%20I2C1%20SDA%0APin%205%20-%20I2C1%20SCL%0A%0ASPI%20Bus%0APin%2019%20-%20SPI0%20MOSI%0APin%2021%20-%20SPI0%20MISO%0APin%2023%20-%20SPI0%20SCLK%0APin%2024%20-%20SPI0%20CS0%0APin%2026%20-%20SPI0%20CS1%0A%0A%0A%23%23%20win32%20-%3E%20uwp%20%uCF54%uB4DC%20%uD3EC%uD305%20%uBD84%uC11D%uD234%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/tools/IoTAPIPortingTool.htm%0A%60IoTAPIPortingTool.exe%20%3Cpath%3E%20%5B-os%5D.%60%0A%0A%0A%23%23%20iot%20core%20%uC6A9%uC5B4%uC0AC%uC804%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/Glossary.htm%0A%0A%0A%23%23%20wifi%20ap%20profile%uC744%20pc%uC5D0%uC11C%20%uB514%uBC14%uC774%uC2A4%uB85C%20%uC62E%uACA8%uC11C%20%uC5F0%uACB0%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/SetupWiFi.htm%0A%60%60%60bash%0A%23%20find%20the%20name%20of%20the%20profile%20you%20just%20added%0APC%3E%20netsh%20wlan%20show%20profiles%20%0A%0A%23%20This%20will%20export%20the%20profile%20to%20an%20XML%20file%0APC%3E%20netsh%20wlan%20export%20profile%20name%3D%3Cyour%20profilename%3E%20%0A%0A%23%20Connect%20to%20your%20device%20using%20PowerShell%20and%20add%20the%20new%20WiFi%20profile%20to%20your%20device%20by%20executing%20the%20following%20commands%0ADEVICE%3E%20netsh%20wlan%20add%20profile%20filename%3D%3Ccopied%20XML%20path%3E%0ADEVICE%3E%20netsh%20wlan%20show%20profiles%0A%0A%23%20Connect%20the%20Windows%2010%20IoT%20Core%20device%20to%20wireless%20network%20via%20netsh%0ADEVICE%3E%20netsh%20wlan%20connect%20name%3D%3Cprofile%20name%3E%0A%0A%23%20Verify%20that%20your%20device%20is%20connected%20to%20the%20wireless%20network%20and%20can%20reach%20the%20internet%0ADEVICE%3E%20netsh%20wlan%20show%20interfaces%0ADEVICE%3E%20ipconfig%20/all%0ADEVICE%3E%20ping%20/S%20%3Cyour%20WiFi%20adapter%20ip%20address%3E%20bing.com%0A%60%60%60%0A%0A%0A%23%23%20%uB514%uBC14%uC774%uC2A4%uC640%20powershell%20%uC138%uC158%20%uC5F0%uACB0%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/samples/PowerShell.htm%0A%60%60%60bash%0APC%3E%20net%20start%20WinRM%0APC%3E%20Set-Item%20WSMan%3A%5Clocalhost%5CClient%5CTrustedHosts%20-Value%20%3Cmachine-name%20or%20IP%20Address%3E%0A%0A%23%20default%20password%3A%20p@ssw0rd%0APC%3E%20Enter-PSSession%20-ComputerName%20%3Cmachine-name%20or%20IP%20Address%3E%20-Credential%20%3Cmachine-name%20or%20IP%20Address%20or%20localhost%3E%5CAdministrator%0A%60%60%60%0A%0A%uC54C%uB824%uC9C4%20%uC774%uC288%uB4E4%0A%0A1.%20%0A%uBB38%uC81C%20%3A%20Appx%2C%20NetAdapter%2C%20NetSecurity%2C%20NetTCPIP%2C%20PnpDevice.%20%uAC00%20%uC5C6%uB2E4%uACE0%20%uB098%uC634...%0A%uD574%uACB0%uCC45%20%3A%20RemoteSigned%uB85C%20%uC2E4%uD589%uAD8C%uD55C%20%uBCC0%uACBD%20%0Ahttps%3A//technet.microsoft.com/en-us/library/ee176961.aspx.%0A%0A2.%20%0A%60Import-Module%20NetAdapter%20-Force%60%20%uCC98%uB7FC%20Force%uBD99%uC77C%uAC83%0A%0A%0A%0A%23%23%20%uD638%uD658%uB418%uB294%20%uD558%uB4DC%uC6E8%uC5B4%20%uB9AC%uC2A4%uD2B8%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/SupportedInterfaces.htm%0A%0A%0A%0A%23%23%20BLE%20%26%20GATT%20%uD504%uB85C%uD544%20%uC0D8%uD50C%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/samples/BLEGatt.htm%0A%0Ahttp%3A//www.ti.com/tool/cc2541dk-sensor%0A%uC5EC%uB7EC%uAC00%uC9C0%20%uC13C%uC11C%uAC00%20%uB2EC%uB824%uC788%uB294%20%uAC1C%uBC1C%uC6A9%20%uC13C%uC11C%uBB49%uCE58%20%uBE44%uCF58%0A%0A%0A%0A%23%23%20%uD30C%uC77C%uACF5%uC720%uC11C%uBE44%uC2A4%20%uCF1C%uAE30/%uB044%uAE30%20smb%uD504%uB85C%uD1A0%uCF5C%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/samples/SMB.htm%0A%60%60%60bash%0A%23%20%uD30C%uC77C%uACF5%uC720%uB044%uAE30%0ADEVICE%3E%20reg%20add%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5Cservices%5Clanmanserver%20/v%20Start%20/t%20REG_DWORD%20/d%200x3%20/f%0A%0A%23%20%uD30C%uC77C%uACF5%uC720%uCF1C%uAE30%0ADEVICE%3E%20reg%20add%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5Cservices%5Clanmanserver%20/v%20Start%20/t%20REG_DWORD%20/d%200x2%20/f%0A%60%60%60%0A%0A%0A%0A%23%23%20ftp%20%uC11C%uBC84%uB85C%20%uC0AC%uC6A9%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/samples/FTP.htm%0A%60%60%60bash%0ADEVICE%3E%20start%20C%3A%5CWindows%5CSystem32%5Cftpd.exe%20%3CPATH_TO_DIRECTORY%3E%0A%60%60%60%0A%0A%0A%0A%23%23%20iot%20core%20pro%20%uC0C1%uC5C5%uC6A9%20%uB77C%uC774%uC13C%uC2A4%20%uD398%uC774%uC9C0%0Ahttps%3A//www.windowsforiotdevices.com/%0A%0A%0A%0A%23%23%20uwp%20api%20%uC911%uC5D0%20iot%20core%uC5D0%uC11C%20%uC0AC%uC6A9%uD560%20%uC218%20%uC5C6%uB294%uAC83%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/UnavailableApis.htm%0ABackgroundMediaPlayer%0ASpeechRecognizer%0AFileOpenPicker%0AFileSavePicker%0AFolderPicker%0AHardwareIdentification%0ACoreWindowDialog%0AInkManager%0A%0A%0A%0A%23%23%20Unified%20Write%20Filter%20%3A%20%uD558%uB4DC%uB514%uC2A4%uD06C%20%uBCF4%uC548%uAD00%28%3F%29%20%uC0AC%uC6A9%uD558%uAE30%0Ahttp%3A//ms-iot.github.io/content/en-US/win10/UWF.htm

이 글은 Evernote에서 작성되었습니다. Evernote는 하나의 업무 공간입니다. Evernote를 다운로드하세요.

댓글