Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
KT
Uploaded by
Keisuke Tanaka
PDF, PPTX
1,098 views
Hardware meetup
Sapporo #hardware Meetup の発表資料
Software
◦
Read more
0
Save
Share
Embed
Embed presentation
Download
Download as PDF, PPTX
1
/ 15
2
/ 15
3
/ 15
4
/ 15
5
/ 15
6
/ 15
7
/ 15
8
/ 15
9
/ 15
10
/ 15
11
/ 15
12
/ 15
13
/ 15
14
/ 15
15
/ 15
More Related Content
PDF
Hw meetup 20150304
by
Hiraku Komuro
PDF
コードを書かずにLチカ。から始めよう
by
Shin-ya Koga
ODP
Embedd IDS
by
Kensei Demura
PDF
mbedでIoTデバイス
by
Junichi Katsu
PDF
Simple IoT BoardでIoT
by
Junichi Katsu
PPTX
これからはじめるIoTデバイス mbed入門編
by
Naoto Tanaka
PDF
iBeacon Applications
by
Kosuke Usami
PPTX
02.超初心者向けセキュリティ入門(IoT)
by
Study Group by SciencePark Corp.
Hw meetup 20150304
by
Hiraku Komuro
コードを書かずにLチカ。から始めよう
by
Shin-ya Koga
Embedd IDS
by
Kensei Demura
mbedでIoTデバイス
by
Junichi Katsu
Simple IoT BoardでIoT
by
Junichi Katsu
これからはじめるIoTデバイス mbed入門編
by
Naoto Tanaka
iBeacon Applications
by
Kosuke Usami
02.超初心者向けセキュリティ入門(IoT)
by
Study Group by SciencePark Corp.
What's hot
ODP
GoでサブGHz帯通信
by
Tomoya Miwa
PPTX
こんな時だから、デバイスとリモートに接続する技法一気見せ
by
Knowledge & Experience
ODP
ZerooneLT
by
Kensei Demura
PPTX
Azure による AI on Edge 解説
by
Knowledge & Experience
PDF
Beaconのお話
by
Shinobu Okano
PDF
iOS7アプリ同士の近距離通信どれがいい?
by
Norihiro Arita
PDF
IoT勉強会「IoTデバイス Intel Edison編」
by
Yasuyuki Sugai
PDF
iBeaconについて #confwd
by
Tsubasa Yumura
PPTX
FirefoxOS勉強会#7 カメラアプリの作り方
by
Kazuyuki Suzuki
PPTX
Windows10 IoT CoreとBLE
by
Kenta IDA
PDF
第3回 The Things Network(TTN)勉強会向け、Microsoft Azure IoT紹介
by
Knowledge & Experience
PDF
Simple IoT BoardでIoT
by
Junichi Katsu
PDF
rosjp10 itとrt(ネットワーク技術と時々、仮想化) 株式会社インテック
by
Tatsuya Fukuta
PDF
iOS7でのBluetooth LE活用 @ MOSA Software Meeting 2013
by
akihiro uehara
PPTX
Rosserial無線化への招待 〜Invitation to wirelessization by rosserial〜
by
Tatsuya Fukuta
PPTX
160531 IoT LT #15 @ 日本IBM
by
Toshiki Tsuboi
PPTX
Bluetoothデュアルモジュールを使ってみた話 @IoTLT vol.50
by
NorioIkedo
PPTX
Azure IoT サービスによるリモートアクセス技術解説
by
Knowledge & Experience
PDF
おしゃべりbox♪ IoTLT vol14
by
Masashi Fujimoto
GoでサブGHz帯通信
by
Tomoya Miwa
こんな時だから、デバイスとリモートに接続する技法一気見せ
by
Knowledge & Experience
ZerooneLT
by
Kensei Demura
Azure による AI on Edge 解説
by
Knowledge & Experience
Beaconのお話
by
Shinobu Okano
iOS7アプリ同士の近距離通信どれがいい?
by
Norihiro Arita
IoT勉強会「IoTデバイス Intel Edison編」
by
Yasuyuki Sugai
iBeaconについて #confwd
by
Tsubasa Yumura
FirefoxOS勉強会#7 カメラアプリの作り方
by
Kazuyuki Suzuki
Windows10 IoT CoreとBLE
by
Kenta IDA
第3回 The Things Network(TTN)勉強会向け、Microsoft Azure IoT紹介
by
Knowledge & Experience
Simple IoT BoardでIoT
by
Junichi Katsu
rosjp10 itとrt(ネットワーク技術と時々、仮想化) 株式会社インテック
by
Tatsuya Fukuta
iOS7でのBluetooth LE活用 @ MOSA Software Meeting 2013
by
akihiro uehara
Rosserial無線化への招待 〜Invitation to wirelessization by rosserial〜
by
Tatsuya Fukuta
160531 IoT LT #15 @ 日本IBM
by
Toshiki Tsuboi
Bluetoothデュアルモジュールを使ってみた話 @IoTLT vol.50
by
NorioIkedo
Azure IoT サービスによるリモートアクセス技術解説
by
Knowledge & Experience
おしゃべりbox♪ IoTLT vol14
by
Masashi Fujimoto
Hardware meetup
1.
iPhone から Edison
を操作する @clickbrick Copyright © Classmethod, Inc.
2.
自己紹介 田中 圭介(たなか けいすけ) クラスメソッド株式会社 iOS
エンジニア サーバーサイドは苦手 SNS 嫌い Copyright © Classmethod, Inc.
3.
Intel Edison ウェアラブルコンピュータ開発用のシングルボードコンピュータ デュアルコアの Intel
Atom 500MHz メモリ 1 GB Linux 搭載 通信用の Bluetooth と Wi-Fi を備える Copyright © Classmethod, Inc.
4.
iPhone と Edison 要は
iOS と Linux Copyright © Classmethod, Inc. iOS Linux
5.
今回はこいつらを接続します Copyright © Classmethod,
Inc.
6.
やること Edison LED を光らせる Buzzer を鳴らす iPhone それぞれの
ON / OFF を制御する Copyright © Classmethod, Inc.
7.
DEMO Copyright © Classmethod,
Inc.
8.
仕組み Copyright © Classmethod,
Inc. * Web サーバー(Python) * 実行プログラム(Arduino) * Linux 0.5 秒おきにファイルパス監視 ファイルがあれば特定の処理実行 リクエストによってファイル生成/削除 * iOS アプリ スイッチ ON / OFF によって リクエストを送信
9.
Web サーバー Copyright ©
Classmethod, Inc. #!/usr/bin/python import CGIHTTPServer CGIHTTPServer.test() * サーバー起動プログラム(server.py) #!/usr/bin/env python f = open('/home/root/python/output/led', 'w') f.write('') f.close() * LED 点灯 API(led_on.py)
10.
実行プログラム Copyright © Classmethod,
Inc. void checkLed() { char filePath[] = "/home/root/python/output/led"; FILE *file; if ((file = fopen(filePath, "r")) == NULL) { Serial.println("LED file not exists."); digitalWrite(ledPin, LOW); } else { Serial.println("LED file exists!!"); digitalWrite(ledPin, HIGH); } }
11.
iOS アプリ Copyright ©
Classmethod, Inc. static NSString *const kBaseURL = @"http://tanason.local:8000/cgi-bin/"; - (void)sendRequestWithResource:(NSString *)resource { NSString *url = [NSString stringWithFormat:@"%@%@", kBaseURL, resource]; NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10]; [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse * response, NSData * data, NSError * error) { if (error) { NSLog(@"error = %@", error); } else { NSLog(@"Success!!"); } }]; }
12.
まとめ iPhone から Edison
の操作は HTTP 通信で行う Web サーバーは Python が簡単 ファイルの存在有無で任意の処理を実行させる ファイル生成 / 削除時はパーミッションに注意 Copyright © Classmethod, Inc.
13.
最後に Copyright © Classmethod,
Inc.
14.
別に iPhone じゃなくてもいいです Copyright
© Classmethod, Inc.
Download