IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제...

55
IoT 사사사사사사 Windows 8 Microsoft 김김김 김김 2014 사 사사 사사 ! 2 사사 사사 사사사사사사 Windows 8 사사 사사 !

Transcript of IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제...

Page 1: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

IoT 사물인터넷과 Windows 8Microsoft 김영욱 부장

2014 년 명품 특강 !

2 월의 주제사물인터넷과 Windows 8 앱의 연결 !

Page 2: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

IoT(Internet of Things)

“Internet of Things”물리적으로 네트웍에 연결되어 있는 기기와 이를 위한 백엔드 서비스 및 소프트웨어

Evolution to the “Internet of Things”

Com

pu

tin

g

Era

1960’s 1970’s 1980’s 1990’s 2000’s 2010’s 2020’s

Multi-device computingMany devices for one user

Mass marketOne device for one user

Institutional computing One device for many users

Mainframe MiniComputing

Client / Server DesktopInternet

Cloud & Mobile Cloud & DigitalComputing

Data Management

Apps

Business Logic Apps

Process Automation

Apps

Web Apps

Mobile Apps

Apps, Open APIs & Big

Data

?

Com

pu

tin

g D

evic

es

Page 3: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

M2M vs IoTDevice or Service

Page 4: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

IoT 를 보는 두 가지 관점유토피아적 관점과 현실적 관점

Page 5: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

IoT 를 생태계 분류

Div

ers

ity

Volu

me

Page 6: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Device + Service + Software

1 Device 2 Service 3 Software

Page 7: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Device + Service + Software

1 Device

최소한의 Computing Power저전력

각종 센서 기술최소한의 통신 기술

2 Service 3 Software

Auto Scaling안정성경제성

Web AppStore App

Desktop App

Page 8: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Device

'10 '12 16E$0.0

$0.5

$1.0

$1.5

$2.0

$2.5

Energy Source

GPS

Camera

8-bit microcontroller

AccelerometerMicrophone

Wi-Fi Radio

Bluetooth Radio

Temp Sensor

IoT Component CostsUSD

Other key enablers for IoT Hardware

Cost effective component manufacturing

Open source hardware components

Crowdfunding and easier financing

Page 9: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows EmbeddedRetail

Manufacturing

Healthcare

Page 10: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

산업용 패널 컴퓨터 , 임베디드 컴퓨터 [ 부트윈 ]

전해질 분석기 [ 아이센스 ]

Internet Phone 이 결합된 디지털 사이니지 [ 여의시스템 ]

휴대용 차량진단기 [ 지아이티 ]

금융자동화기기 [ 노틸러스효성 ]

All-In-One Slim POS [ 하나시스 ] 골밀도측정기 [ 오스테오시스 ]

Windows Embedded

Page 11: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Service

Digital HubDigital Hub

SensorSensor Sensor SensorSensorSensor Sensor

Page 12: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8.1 new APIsUser interface

Fundamentals

Devices Graphics and media Communications and data

Services

Geo-location

Proximity

Direct3D Direct2D Direct Write

PlayTo

Contracts

Bing

Azure Mobile

HTML5/CSS XAMLInput Controls

Authentication

Bluetooth

USB

HID WiFi direct

Point of service

3Dprinting Scanning

WebGL

HTTP

Contacts

Appoint-ments

PDF

Speech synthesis

Diagnostics

Portable

Sensors Playback Capture

Printing

SVGCanvas

Local storage SMS

Streams Background transfer

Syndication

Networking

XML and JSON

Skydrive

Live tiles and toastAccessibility Data binding

Application services

Threading/timers

Memory management Globalization Cryptography

Xbox Live

Updated

New

Page 13: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Service

Virtual Machine

HD Insight

Mobile Service

Storage & Database

Service Bus

Page 14: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Software

Page 15: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Device + Service + Software

1 Device 2 Service 3 Software

Windows Embedded Windows Azure

Windows StoreVisual Studio

Microsoft IoT Platform

Page 16: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Device + Service + Software 를 모두 제공하는IoT Platform 회사 입니다 .

는 IoT 를 위해서

Page 17: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

준비물

1. Arduino2. Bluetooth 3. Compass Sensor4. Accelerometer Sensor5. Gyrometer Sensor6. Inclinometer Sensor7. Light Sensor

Page 18: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

1. Arduino

Page 19: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

• 하나의 칩으로 구성된 작은 컴퓨터• processor, memory, input/output

• 주로 Embedded 영역에서도 최저 성능 / 비용

• Arduino, Raspberry Pi…………

Microcontroller

Page 20: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

• Typical components include:• power circuit • programming interface• basic input; usually buttons and LEDs• I/O pins

Open Hardware

Page 21: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Making-robots-with-arduino.pdf

Arduino UNO R3

Page 22: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Making-robots-with-arduino.pdf

Specification

Atmega 328 microprocessor

Page 23: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

14 current boards

Arduino I/O Boards

Page 24: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Shields

Page 25: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Touchscreen Shield

Wave Shield

Datalogging Shield

Shields

Page 26: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Ethernet Shield

XBee Shield

Wifi Shield

More Shields…

Page 27: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Gas Sensor Temp & Humidity

Flex Sensor

Fingerprint Scanner

Geiger Counter

Sensors

Page 28: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Photo/thermistor, infared, force sensitive resistor, Hall effect, Piezo, tilt sensor..

Sensors

Page 29: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Sketches

Includes

Globals

void setup()void loop()

Page 30: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

todbot.com/blog/bionicarduino

Arduino 의 구성

Page 31: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Arduino 연결

Page 32: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

http://arduino.cc/en/Guide/Environment

Arduino 개발 환경

1. Sketch programming2. Compiling3. Upload4. Test

Page 33: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Arduino 개발 환경 설정

Page 34: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

• 첫 번째 샘플 LED 점멸• File > Examples > Digital > Blink• 13 번 Pin 과 GND 를 연결한다 .

www.instructables.com

Arduino 첫 번째 샘플

Page 35: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Arduino 용어정리

Page 36: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

pinMode(pin, mode)Sets pin to either INPUT or OUTPUT

digitalRead(pin)Reads HIGH or LOW from a pin

digitalWrite(pin, value)Writes HIGH or LOW to a pin

delay(ms)–Pauses for a few milliseconds

delayMicroseconds(us)–Pauses for a few microsec-onds

Page 37: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Arduino 첫 번째 샘플

setup( ) : 최기화에 필요한 내용들을 기술한다 . loop( ) : main( ) 함수에 해당하는 곳이지만 지속적으로 반복하는 점이 차이

Page 38: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

• Digital has two values: on and off• Analog has many (infinite) values• Computers don’t really do analog, they quantize• Remember the 6 analog input pins---here’s how

they work

Digital or Analog

Page 39: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

2. Bluetooth

Page 40: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

SoftwareSerial : Bluetooth 모듈 시리얼 포트를 지정한다 .

BTSerial.begin( ): 통신을 시작한다 .BTSerial.write( ) : 문자를 전송한다 . BTSeri-al.read( ) : 문자를 수신한다 .

Arduino Bluetooth code

Page 41: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

1. STATE2. RXD3. TXD4. GND5. VCC

Arduino Bluetooth Module

12

3

4

5

Page 42: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8 Bluetooth

Page 43: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8 Bluetooth

Page 44: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8 Bluetooth APIs

Namespace

Windows.Devices.EnumerationWindows.Devices.BluetoothWindows.Devices.Bluetooth.RfcommWindows.Networking.Sockets;Windows.Storage.Streams;

Page 45: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8 Bluetooth APIs

Windows.Devices.Enumeration

DeviceInformationCollectionDeviceInformation

장치들의 목록을 검색하고 장치 정보를 가지고 있을 수 있다 .

Page 46: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8 Bluetooth APIs

Windows.Devices.Enumeration

RfcommDeviceService

블루투스 장비를 추상화 하고 있으며 이 클래스를 통해서 등록된 블루투스 장비를 연결할 수 있다 .

Page 47: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8 Bluetooth APIs

BluetoothDevices = await DeviceInformation.FindAllAsync(

RfcommDeviceService.GetDeviceSelector(RfcommServiceId.SerialPort));

 foreach (var deviceInfo in BluetoothDevices){

lstBluetooth.Items.Add(deviceInfo.Name);}

Page 48: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8 Bluetooth APIs

var ConnectionDevice =

RfcommDeviceService.FromIdAsync(deviceId);var RfcommService = await ConnectionDevice;

if (RfcommService != null){

var Socket = new StreamSocket();var ConnectAction =

Socket.ConnectAsync(RfcommService.ConnectionHostName,

RfcommService.ConnectionServi-ceName,

Page 49: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

Windows 8 Bluetooth APIs

SocketProtectionLevel.BluetoothEncryptionAllowNullAuthen-tication);await ConnectAction;

Page 50: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

BluetoothConnectionManager

MessageReceived Event 메시지를 받았을 때BluetoothDevices Property 전체 블루투스 디바이스 목록Disconnect() Method 연결 끊기SendMessageAsync() Method 메시지 보내기ConnectToSer-viceAsync()

Method 연결 시도

Page 51: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

LightSensor

Page 52: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

서브 모터

Page 53: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

서브 모터

Page 54: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

서브 모터https://www.facebook.com/groups/IoTLove/

http://1drv.ms/1fd9JwL

Page 55: IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장 2014 년 명품 특강 ! 2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !

• 행사 종료 후 설문지를 작성하여 등록 데스크에 제출해 주세요 . 소정의 기념품을 드립니다 .

No-tice

경 품 추 첨

2014 년 1 월 새해 명품 특강 !

센서 활용 앱 개발

스컬프트 컴포트 마우스마이크로소프트 웨지 모바일 키보드