iot 사물인터넷과 windows 8

Post on 11-Feb-2016

247 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

2 월의 주제 사물인터넷과 Windows 8 앱의 연결 !. IoT 사물인터넷과 Windows 8. 2014 년 명품 특강 !. Microsoft 김영욱 부장. IoT (Internet of Things). “Internet of Things”. 물리적으로 네트웍에 연결되어 있는 기기와 이를 위한 백엔드 서비스 및 소프트웨어. Evolution to the “Internet of Things”. Mainframe. Mini Computing. Client / Server. Desktop - PowerPoint PPT Presentation

TRANSCRIPT

IoT 사물인터넷과 Windows 8Microsoft 김영욱 부장2014 년 명품 특강 !

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

IoT(Internet of Things)“Internet of Things”

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

Com

puti

ng

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

puti

ng D

evic

es

M2M vs IoTDevice or Service

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

IoT 를 생태계 분류Di

vers

ityVo

lum

e

Device + Service + Software

1 Device 2 Service 3 Software

Device + Service + Software

1 Device최소한의 Computing Power저전력각종 센서 기술최소한의 통신 기술

2 Service 3 SoftwareAuto Scaling안정성경제성

Web AppStore App

Desktop App

Device

'10 '12 16E$0.0

$0.5

$1.0

$1.5

$2.0

$2.5

Energy Source

GPS

Camera

8-bit microcontroller

AccelerometerMicrophoneWi-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

Windows EmbeddedRetail

Manufacturing

Healthcare

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

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

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

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

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

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

Windows Embedded

Service

Digital HubDigital Hub

SensorSensor Sensor SensorSensorSensor Sensor

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

ServiceVirtual Machine

HD Insight

Mobile Service

Storage & Database

Service Bus

Software

Device + Service + Software

1 Device 2 Service 3 Software

Windows Embedded Windows Azure

Windows StoreVisual Studio

Microsoft IoT Platform

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

는 IoT 를 위해서

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

1. Arduino

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

• 주로 Embedded 영역에서도 최저 성능 / 비용• Arduino, Raspberry Pi…………

Microcontroller

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

Open Hardware

Making-robots-with-arduino.pdf

Arduino UNO R3

Making-robots-with-arduino.pdf

Specification

Atmega 328 microprocessor

14 current boards

Arduino I/O Boards

Shields

Touchscreen Shield

Wave Shield

Datalogging Shield

Shields

Ethernet Shield

XBee Shield

Wifi Shield

More Shields…

Gas Sensor Temp & Humidity

Flex Sensor

Fingerprint Scanner

Geiger Counter

Sensors

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

Sensors

Sketches

Includes

Globals

void setup()void loop()

todbot.com/blog/bionicarduino

Arduino 의 구성

Arduino 연결

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

Arduino 개발 환경

1. Sketch programming2. Compiling3. Upload4. Test

Arduino 개발 환경 설정

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

www.instructables.com

Arduino 첫 번째 샘플

Arduino 용어정리

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 millisecondsdelayMicroseconds(us)

–Pauses for a few microsec-onds

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

• 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

2. Bluetooth

SoftwareSerial : Bluetooth 모듈 시리얼 포트를 지정한다 .BTSerial.begin( ): 통신을 시작한다 .BTSerial.write( ) : 문자를 전송한다 . BTSeri-al.read( ) : 문자를 수신한다 .

Arduino Bluetooth code

1. STATE2. RXD3. TXD4. GND5. VCC

Arduino Bluetooth Module

12

34

5

Windows 8 Bluetooth

Windows 8 Bluetooth

Windows 8 Bluetooth APIs

Namespace

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

Windows 8 Bluetooth APIs

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

Windows 8 Bluetooth APIs

Windows.Devices.EnumerationRfcommDeviceService

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

Windows 8 Bluetooth APIs

BluetoothDevices = await DeviceInformation.FindAllAsync(

RfcommDeviceService.GetDeviceSelector(RfcommServiceId.SerialPort));

 foreach (var deviceInfo in BluetoothDevices){

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

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,

Windows 8 Bluetooth APIs

SocketProtectionLevel.BluetoothEncryptionAllowNullAuthen-tication);await ConnectAction;

BluetoothConnectionManager

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

Method 연결 시도

LightSensor

서브 모터

서브 모터

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

http://1drv.ms/1fd9JwL

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

경 품 추 첨2014 년 1 월 새해 명품 특강 !센서 활용 앱 개발

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

top related