Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
IoT 사물인터넷과 Windows 8 Microsoft 김영욱 부장
2014년 명품 특강!
2월의 주제 사물인터넷과 Windows 8 앱의 연결!
“Internet of Things”
Evolution to the “Internet of Things”
Co
mp
uti
ng
Era
1960’s 1970’s 1980’s 1990’s 2000’s 2010’s 2020’s
Multi-device computing Many devices for one user
Mass market One device for one user
Institutional computing One device for many users
Mainframe Mini
Computing
Client / Server Desktop
Internet
Cloud & Mobile Cloud & Digital
Computing
Data
Management
Apps
Business
Logic Apps
Process
Automation Apps Web Apps Mobile Apps
Apps, Open APIs
& Big Data
?
Co
mp
uti
ng
Devic
es
Div
ers
ity
Vo
lum
e
$0.0
$0.5
$1.0
$1.5
$2.0
$2.5
'10 '12 16E
Energy Source
GPS
Camera
8-bit microcontroller
Accelerometer
Microphone
Wi-Fi Radio
Bluetooth Radio
Temp Sensor
IoT Component Costs USD
Other key enablers for IoT Hardware
Windows Embedded
Retail
Manufacturing
Healthcare
산업용 패널 컴퓨터, 임베디드 컴퓨터 [부트윈]
전해질 분석기 [아이센스]
Internet Phone이 결합된 디지털 사이니지 [여의시스템]
휴대용 차량진단기 [지아이티]
금융자동화기기 [노틸러스효성]
All-In-One Slim POS [하나시스] 골밀도측정기 [오스테오시스]
Windows Embedded
User interface
Fundamentals
Devices Graphics and media Communications and data Services
Geo-location
Proximity
Direct3D Direct2D Direct Write
PlayTo
Contracts
Bing
Azure Mobile
HTML5/CSS XAML Input Controls
Authentication
Bluetooth
USB
HID WiFi direct
Point of service
3D printing
Scanning
WebGL
HTTP
Contacts
Appoint-ments
Speech synthesis
Diagnostics
Portable
Sensors Playback Capture
Printing
SVG Canvas
Local storage
SMS
Streams Background
transfer
Syndication Networking
XML and JSON
Skydrive
Live tiles and toast
Accessibility Data binding
Application services
Threading/timers Memory
management Globalization Cryptography
Xbox Live
Updated New
• 하나의 칩으로 구성된 작은 컴퓨터 • processor, memory, input/output
• 주로 Embedded 영역에서도 최저 성능/비용
• Arduino, Raspberry Pi…………
• Typical components include: • power circuit • programming interface • basic input; usually buttons and LEDs • I/O pins
Making-robots-with-arduino.pdf
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
http://arduino.cc/en/Guide/Environment
1. Sketch programming 2. Compiling 3. Upload 4. Test
• 첫 번째 샘플 LED 점멸
• File > Examples > Digital > Blink
• 13번 Pin과 GND를 연결한다.
www.instructables.com
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 microseconds
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
SoftwareSerial : Bluetooth 모듈 시리얼 포트를 지정한다. BTSerial.begin( ): 통신을 시작한다. BTSerial.write( ) : 문자를 전송한다. BTSerial.read( ) : 문자를 수신한다.
1. STATE 2. RXD 3. TXD 4. GND 5. VCC
1
2
3
4
5
Namespace Windows.Devices.Enumeration Windows.Devices.Bluetooth Windows.Devices.Bluetooth.Rfcomm Windows.Networking.Sockets; Windows.Storage.Streams;
Windows.Devices.Enumeration
DeviceInformationCollection DeviceInformation 장치들의 목록을 검색하고 장치 정보를 가지고 있을 수 있다.
Windows.Devices.Enumeration
RfcommDeviceService 블루투스 장비를 추상화 하고 있으며 이 클래스를 통해서 등록된 블루투스 장비를 연결할 수 있다.
BluetoothDevices = await DeviceInformation.FindAllAsync( RfcommDeviceService.GetDeviceSelector( RfcommServiceId.SerialPort)); foreach (var deviceInfo in BluetoothDevices) { lstBluetooth.Items.Add(deviceInfo.Name); }
var ConnectionDevice = RfcommDeviceService.FromIdAsync(deviceId); var RfcommService = await ConnectionDevice; if (RfcommService != null) { var Socket = new StreamSocket(); var ConnectAction = Socket.ConnectAsync( RfcommService.ConnectionHostName, RfcommService.ConnectionServiceName,
SocketProtectionLevel.BluetoothEncryptionAllowNullAuthentication); await ConnectAction;
MessageReceived Event 메시지를 받았을 때
BluetoothDevices Property 전체 블루투스 디바이스 목록
Disconnect() Method 연결 끊기
SendMessageAsync() Method 메시지 보내기
ConnectToServiceAsync() Method 연결 시도
https://www.facebook.com/groups/IoTLove/ http://1drv.ms/1fd9JwL
• 행사 종료 후 설문지를 작성하여 등록 데스크에 제출해 주세요. 소정의 기념품을 드립니다.
Notice
경 품 추 첨
2014년 1월 새해 명품 특강!
센서 활용 앱 개발
스컬프트 컴포트 마우스 마이크로소프트 웨지 모바일 키보드