SlideShare una empresa de Scribd logo
1 de 35
Google I/O 2018 お土産
Android Things 1.0キットを
作ってみた
2018年6月9日
服部 励起
自己紹介 服部 励起(はっとりれいき)
 株式会社 情報スペース 代表取締役
 JSバックアップ:企画~運用・保守
 Android, iOS, Windows PC, Server
 JSバックアップフォト:企画~運用・保守
 Android, iOS, Server
 特許2件発明者
※兄弟会社:タオソフトウェア株式会社
 日本Androidの会 セキュリティ部
 『Androidセキュリティの今、これから』(3)~(5)共同執筆:2011年
http://www.atmarkit.co.jp/ait/series/2201/
Google I/O 2018行ってきた
 Google I/O初参加
Android Thingsって?
 一般的なAndroidデバイス
 電話機能、ブラウザアプリ、デベロッパー作成アプリなどの層
 Androidフレームワーク層
 ランタイム層
 HAL(Hardware Abstraction Layer)
 Linux Kernel
Android Thingsって?
 Android Thingsデバイス
 デフォルトアプリは無く、デベロッパーアプリの層
 Androidフレームワーク層+Thingsサポートライブラリ層
 ランタイム層
 HAL(Hardware Abstraction Layer)
 Linux Kernel
Android Thingsだと何が良いの?
 Androidフレームワーク層以下は全てGoogleが管理
 OTAアップデート供給される(らしい)
 Android 7.1以降の「A/Bシステムアップデート」対応
 アップデート中もデバイスを使い続けることができる
 キャッシュパーティションは不要
 アップデート失敗しても、別のブート領域から維持
 Android 8以降ではストリーミングアップデートも可能
 Androidデバイスと同程度のセキュリティが維持
 月例パッチが供給されるかについては不明
 Java / Kotlinで開発できるしデバッグもAndroid Studioで可能
Android Thingsだと何が良いの?
 強力なThingsサポートライブラリ
 Firebase, TensorFlow, Google Cloud Platformなど
 各種デバイスドライバなど
 Android Things規格に準拠する必要があるが、デバイスエンジニア
でなくても開発できる
 Google Playで配布できるらしい
 Android ADK(Accessory Development Kit)との違い
 2011年発表時、Android端末とUSB経由でコントロールする仕組み
 Arduinoデバイスなどと通信できたが、デバイス側の開発はArduinoIDE
 IoTデバイスそのものをAndroid端末とするのがAndroid Things
What's new in Android Things (Google I/O '18)
 高性能、インテリジェントなエッジデバイスがターゲット
 セキュリティシステム、ルーター、ドアベル、エネルギーモニター
 販売情報、在庫管理、
インタラクティブ広告、
ベンディングマシン
 監視カメラ、入退室管理、
空調システム、
スマートメーター
 資産管理、物流管理、
運転補助、予測サービス
What's new in Android Things (Google I/O '18)
 メジャーバージョンは3年間サポートされる
 2018年6月にはAndroid Things 1.1が出るとのこと
 自動でOTAアップデートの可否はデバイス側で設定できる
What's new in Android Things (Google I/O '18)
 セキュリティ部分は将来導入される予定
 OTAは既に実装済。
What's new in Android Things (Google I/O '18)
 Android Thingsで製品化された製品群
 LG:スマートスピーカー
What's new in Android Things (Google I/O '18)
 Android Thingsで製品化されたスマートディスプレイ
 JBL:Map表示
 LG:天気表示
 Lenovo:レシピ表示
Google IO 2018お土産の紹介
 Android Things Starter Kit
https://shop.technexion.com/pico-pi-imx7-startkit-rainbow-hat.html
$199.00
 NXP i.MX7D
Google IO 2018お土産の紹介
 Kitに含まれるもの
https://androidthings.withgoogle.com/#!/kits/starter-kit
組み立て方法は上記リンク参照!
Android Things Starter Kit組み立て後
NXP i.MX7Dのセットアップ
 NXP i.MX7DへのAndroid Thingsインストール
 ツールのダウンロード
https://partner.android.com/things/console/u/0/#/tools
NXP i.MX7Dのセットアップ
 Windows用のexeを起動して設問に回答するとインストールで
きる
 注意)ボードをUSB-C経由で電源を入れると再起動を繰り返す点滅を
するが無視すること
NXP i.MX7Dのセットアップ
Android Things Setup Utility (version 1.0.20)
============================
This tool will help you install Android Things on your board and set up
Wi-Fi.
What do you want to do?
1 - Install Android Things and optionally set up Wi-Fi
2 - Set up Wi-Fi on an existing Android Things device
1
What hardware are you using?
1 - Raspberry Pi 3
2 - NXP Pico i.MX7D
2
You chose NXP Pico i.MX7D.
Setting up required tools...
Fetching additional configuration...
Downloading platform tools...
File already downloaded.
Unzipping platform tools...
Finished setting up required tools.
NXP Pico i.MX7D
Do you want to use the default image or a custom image?
1 - Default image: Used for development purposes and supported by Android
Things Toolkit, a mobile companion app that can be downloaded at
https://goo.gl/rPWhmv. No access to the Android Things Console features such as
metrics, crash reports, and OTA updates.
2 - Custom image: Upload your custom image for full device development and
management with all Android Things Console features.
1
Downloading Android Things image...
File already downloaded.
Connect your device to this computer:
The USB cable should plug into your board's USB-C port. If your computer also
has USB-C ports like the more recent MacBooks, you will need to use a USB hub.
Otherwise the board won't power on correctly.
Once connected, press [Enter] to install Android Things on the device...
[Enter]
NXP i.MX7Dのセットアップ
Please ensure antenna is already attached. If it is not, disconnect your board,
attach the antenna and reconnect your board to your computer.
When ready, press [Enter]...
Enter the Wi-Fi network name: ●●●●●●●
Enter the Wi-Fi network password (leave empty if no password): ●●●●●●●
Connecting to Wi-Fi network J ●●●●●●●...
Looking for device... This can take up to 3 minutes.
Device found.
Waiting...
Error: unable to connect to Wifi: unable to connect:
Stopping adb server...
Stopped adb server...
Now that you’re set up, try sample projects in Android Studio or in the sample
repository here: https://developer.android.com/things/sdk/samples.html
To learn more about features like over-the-air updates, visit the Android Things
Console: https://partner.android.com/things/console
Press [Enter] to quit.
Looking for devices... This can take up to 3 minutes.
A device has been detected.
WARNING: Flashing will remove all existing data.
Do you want to flash it? (y/n)
y
Rebooting into bootloader...
Waiting for bootloader to launch... This can take up to 3 minutes.
Found fastboot device.
Unzipping image...
Flashing Android Things. This will take a few minutes...
*Do not disconnect or interrupt!*
target reported max download size of 419430400 bytes
sending 'bootloader0' (515 KB)...
・・・・・・・・・・・
Successfully flashed your imx7d.
rebooting...
finished. total time: -0.000s
Successfully flashed Android Things...
Would you like to set up Wi-Fi on this device? (y/n) y
NXP i.MX7Dのセットアップ
 Android Thingsインストール中に表示される番号を記録するこ
とをオススメします。
 AndroidアプリであるAndroid Things
Toolkitアプリから接続する際に、必要
となります。
NXP i.MX7Dの動作確認
 Android Things ToolkitからAndroid Things Starter Kitに接続
 Android Things Toolkitのインストール
https://play.google.com/store/apps/details?id=com.google.android.things.companion&hl=en
 Android Thingsのセットアップ中に表示される4桁のコードを使って接続
NXP i.MX7Dの内蔵サンプルアプリ実行
 Android Things ToolkitからAppsをタップ
 Weather station実行
NXP i.MX7Dの内蔵サンプルアプリ実行
 Android Things ToolkitからAppsをタップ
 TensorFlow Classifier実行
Android Studioとの接続
 接続方法
 電源供給しているPCとUSB接続し、Android Studioと接続するだけ
 Android端末と同じ
Android Studioとの接続
 adbコマンドの利用
 adb devicesコマンドで接続状態の確認
 adb shellコマンドで内部の確認
 adb uninstallコマンドでデバイス内
のアプリを削除
Google Codelabsの紹介
 Googleの公式サンプルコード
 https://codelabs.developers.google.com/
 Android Thingsに絞り込みはトップで「Things」を入力かカテゴリで「Android
Things」を選択
 https://codelabs.developers.google.com/lang-ja
 日本語で公開されているGoogle Codelabs
Buttonサンプルアプリビルド
 Android Thingsにデフォルト組込のボタンアプリ
 https://github.com/androidthings/sample-button
 Java版を利用
Buttonサンプルアプリビルド
 Aボタンじゃ無くてCボタンに変更
したい!
 ボタンとLEDの設定部分を見る
 BoardDefaultsクラスから取得している
Buttonサンプルアプリビルド
 Aボタンじゃ無くてCボタンに変更
したい!
 BoardDefaults.java
 i.MX7Dの部分だけ見る
 LED :GPIO2_IO02
 ボタン:GPIO6_IO14
 何を設定すれば良いの?
Buttonサンプルアプリビルド
 Aボタンじゃ無くてCボタンに変更
したい!
 何を設定すれば良いの?
 ラズパイならこの表から判断できる
 https://pinout.xyz/pinout/rainbow_hat
Buttonサンプルアプリビルド
 Aボタンじゃ無くてCボタンに変更したい!
 https://codelabs.developers.google.com/codelabs/androidthings-
playground-jp/#6
 日本語化されたcodelabsのみ記載されているんだけど・・・
 緑色LED :GPIO2_IO00
 青色LED :GPIO2_IO05
 ボタン「B」:GPIO6_IO15
 ボタン「C」:GPIO2_IO07
Android Thingsサンプルプロジェクト
 Android Studioからサンプルプロジェクトをimport
https://codelabs.developers.google.com/codelabs/androidthings-
playground-jp/#1
Android Thingsサンプルプロジェクト
 Peripheral Driverを選択
Android Thingsサンプルプロジェクト
 プロジェクト設定
Google IO 2018で感じたこと
 視覚機能
 写真からオブジェクト解析、シーン解析していたが、動画から解析
 Tensor Flow Liteでエッジ解析
→Android Things部分がここを受け持っている
 聴覚機能
 Google Assistantで実現
 視覚と合成して、誰が何を喋っているかを実現済(まだ二人)
 人型ロボットを作るには?
 嗅覚機能、平衡感覚機能、触覚機能などが足りない
 ボストン・ダイナミクスでは平衡感覚機能は持っているように見える
まだ時間は掛かりそうだけれど、人型アンドロイドは後5年ぐらい?
次世代ガジェットは人型のリアルアンドロイド!?
(真のネクサス6はまだですか?)

Más contenido relacionado

Destacado

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Destacado (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Google I/O 2018 お土産Android Things 1.0キットを作ってみた

  • 1. Google I/O 2018 お土産 Android Things 1.0キットを 作ってみた 2018年6月9日 服部 励起
  • 2. 自己紹介 服部 励起(はっとりれいき)  株式会社 情報スペース 代表取締役  JSバックアップ:企画~運用・保守  Android, iOS, Windows PC, Server  JSバックアップフォト:企画~運用・保守  Android, iOS, Server  特許2件発明者 ※兄弟会社:タオソフトウェア株式会社  日本Androidの会 セキュリティ部  『Androidセキュリティの今、これから』(3)~(5)共同執筆:2011年 http://www.atmarkit.co.jp/ait/series/2201/
  • 4. Android Thingsって?  一般的なAndroidデバイス  電話機能、ブラウザアプリ、デベロッパー作成アプリなどの層  Androidフレームワーク層  ランタイム層  HAL(Hardware Abstraction Layer)  Linux Kernel
  • 5. Android Thingsって?  Android Thingsデバイス  デフォルトアプリは無く、デベロッパーアプリの層  Androidフレームワーク層+Thingsサポートライブラリ層  ランタイム層  HAL(Hardware Abstraction Layer)  Linux Kernel
  • 6. Android Thingsだと何が良いの?  Androidフレームワーク層以下は全てGoogleが管理  OTAアップデート供給される(らしい)  Android 7.1以降の「A/Bシステムアップデート」対応  アップデート中もデバイスを使い続けることができる  キャッシュパーティションは不要  アップデート失敗しても、別のブート領域から維持  Android 8以降ではストリーミングアップデートも可能  Androidデバイスと同程度のセキュリティが維持  月例パッチが供給されるかについては不明  Java / Kotlinで開発できるしデバッグもAndroid Studioで可能
  • 7. Android Thingsだと何が良いの?  強力なThingsサポートライブラリ  Firebase, TensorFlow, Google Cloud Platformなど  各種デバイスドライバなど  Android Things規格に準拠する必要があるが、デバイスエンジニア でなくても開発できる  Google Playで配布できるらしい  Android ADK(Accessory Development Kit)との違い  2011年発表時、Android端末とUSB経由でコントロールする仕組み  Arduinoデバイスなどと通信できたが、デバイス側の開発はArduinoIDE  IoTデバイスそのものをAndroid端末とするのがAndroid Things
  • 8. What's new in Android Things (Google I/O '18)  高性能、インテリジェントなエッジデバイスがターゲット  セキュリティシステム、ルーター、ドアベル、エネルギーモニター  販売情報、在庫管理、 インタラクティブ広告、 ベンディングマシン  監視カメラ、入退室管理、 空調システム、 スマートメーター  資産管理、物流管理、 運転補助、予測サービス
  • 9. What's new in Android Things (Google I/O '18)  メジャーバージョンは3年間サポートされる  2018年6月にはAndroid Things 1.1が出るとのこと  自動でOTAアップデートの可否はデバイス側で設定できる
  • 10. What's new in Android Things (Google I/O '18)  セキュリティ部分は将来導入される予定  OTAは既に実装済。
  • 11. What's new in Android Things (Google I/O '18)  Android Thingsで製品化された製品群  LG:スマートスピーカー
  • 12. What's new in Android Things (Google I/O '18)  Android Thingsで製品化されたスマートディスプレイ  JBL:Map表示  LG:天気表示  Lenovo:レシピ表示
  • 13. Google IO 2018お土産の紹介  Android Things Starter Kit https://shop.technexion.com/pico-pi-imx7-startkit-rainbow-hat.html $199.00  NXP i.MX7D
  • 14. Google IO 2018お土産の紹介  Kitに含まれるもの https://androidthings.withgoogle.com/#!/kits/starter-kit 組み立て方法は上記リンク参照!
  • 15. Android Things Starter Kit組み立て後
  • 16. NXP i.MX7Dのセットアップ  NXP i.MX7DへのAndroid Thingsインストール  ツールのダウンロード https://partner.android.com/things/console/u/0/#/tools
  • 17. NXP i.MX7Dのセットアップ  Windows用のexeを起動して設問に回答するとインストールで きる  注意)ボードをUSB-C経由で電源を入れると再起動を繰り返す点滅を するが無視すること
  • 18. NXP i.MX7Dのセットアップ Android Things Setup Utility (version 1.0.20) ============================ This tool will help you install Android Things on your board and set up Wi-Fi. What do you want to do? 1 - Install Android Things and optionally set up Wi-Fi 2 - Set up Wi-Fi on an existing Android Things device 1 What hardware are you using? 1 - Raspberry Pi 3 2 - NXP Pico i.MX7D 2 You chose NXP Pico i.MX7D. Setting up required tools... Fetching additional configuration... Downloading platform tools... File already downloaded. Unzipping platform tools... Finished setting up required tools. NXP Pico i.MX7D Do you want to use the default image or a custom image? 1 - Default image: Used for development purposes and supported by Android Things Toolkit, a mobile companion app that can be downloaded at https://goo.gl/rPWhmv. No access to the Android Things Console features such as metrics, crash reports, and OTA updates. 2 - Custom image: Upload your custom image for full device development and management with all Android Things Console features. 1 Downloading Android Things image... File already downloaded. Connect your device to this computer: The USB cable should plug into your board's USB-C port. If your computer also has USB-C ports like the more recent MacBooks, you will need to use a USB hub. Otherwise the board won't power on correctly. Once connected, press [Enter] to install Android Things on the device... [Enter]
  • 19. NXP i.MX7Dのセットアップ Please ensure antenna is already attached. If it is not, disconnect your board, attach the antenna and reconnect your board to your computer. When ready, press [Enter]... Enter the Wi-Fi network name: ●●●●●●● Enter the Wi-Fi network password (leave empty if no password): ●●●●●●● Connecting to Wi-Fi network J ●●●●●●●... Looking for device... This can take up to 3 minutes. Device found. Waiting... Error: unable to connect to Wifi: unable to connect: Stopping adb server... Stopped adb server... Now that you’re set up, try sample projects in Android Studio or in the sample repository here: https://developer.android.com/things/sdk/samples.html To learn more about features like over-the-air updates, visit the Android Things Console: https://partner.android.com/things/console Press [Enter] to quit. Looking for devices... This can take up to 3 minutes. A device has been detected. WARNING: Flashing will remove all existing data. Do you want to flash it? (y/n) y Rebooting into bootloader... Waiting for bootloader to launch... This can take up to 3 minutes. Found fastboot device. Unzipping image... Flashing Android Things. This will take a few minutes... *Do not disconnect or interrupt!* target reported max download size of 419430400 bytes sending 'bootloader0' (515 KB)... ・・・・・・・・・・・ Successfully flashed your imx7d. rebooting... finished. total time: -0.000s Successfully flashed Android Things... Would you like to set up Wi-Fi on this device? (y/n) y
  • 20. NXP i.MX7Dのセットアップ  Android Thingsインストール中に表示される番号を記録するこ とをオススメします。  AndroidアプリであるAndroid Things Toolkitアプリから接続する際に、必要 となります。
  • 21. NXP i.MX7Dの動作確認  Android Things ToolkitからAndroid Things Starter Kitに接続  Android Things Toolkitのインストール https://play.google.com/store/apps/details?id=com.google.android.things.companion&hl=en  Android Thingsのセットアップ中に表示される4桁のコードを使って接続
  • 22. NXP i.MX7Dの内蔵サンプルアプリ実行  Android Things ToolkitからAppsをタップ  Weather station実行
  • 23. NXP i.MX7Dの内蔵サンプルアプリ実行  Android Things ToolkitからAppsをタップ  TensorFlow Classifier実行
  • 24. Android Studioとの接続  接続方法  電源供給しているPCとUSB接続し、Android Studioと接続するだけ  Android端末と同じ
  • 25. Android Studioとの接続  adbコマンドの利用  adb devicesコマンドで接続状態の確認  adb shellコマンドで内部の確認  adb uninstallコマンドでデバイス内 のアプリを削除
  • 26. Google Codelabsの紹介  Googleの公式サンプルコード  https://codelabs.developers.google.com/  Android Thingsに絞り込みはトップで「Things」を入力かカテゴリで「Android Things」を選択  https://codelabs.developers.google.com/lang-ja  日本語で公開されているGoogle Codelabs
  • 27. Buttonサンプルアプリビルド  Android Thingsにデフォルト組込のボタンアプリ  https://github.com/androidthings/sample-button  Java版を利用
  • 29. Buttonサンプルアプリビルド  Aボタンじゃ無くてCボタンに変更 したい!  BoardDefaults.java  i.MX7Dの部分だけ見る  LED :GPIO2_IO02  ボタン:GPIO6_IO14  何を設定すれば良いの?
  • 30. Buttonサンプルアプリビルド  Aボタンじゃ無くてCボタンに変更 したい!  何を設定すれば良いの?  ラズパイならこの表から判断できる  https://pinout.xyz/pinout/rainbow_hat
  • 31. Buttonサンプルアプリビルド  Aボタンじゃ無くてCボタンに変更したい!  https://codelabs.developers.google.com/codelabs/androidthings- playground-jp/#6  日本語化されたcodelabsのみ記載されているんだけど・・・  緑色LED :GPIO2_IO00  青色LED :GPIO2_IO05  ボタン「B」:GPIO6_IO15  ボタン「C」:GPIO2_IO07
  • 32. Android Thingsサンプルプロジェクト  Android Studioからサンプルプロジェクトをimport https://codelabs.developers.google.com/codelabs/androidthings- playground-jp/#1
  • 35. Google IO 2018で感じたこと  視覚機能  写真からオブジェクト解析、シーン解析していたが、動画から解析  Tensor Flow Liteでエッジ解析 →Android Things部分がここを受け持っている  聴覚機能  Google Assistantで実現  視覚と合成して、誰が何を喋っているかを実現済(まだ二人)  人型ロボットを作るには?  嗅覚機能、平衡感覚機能、触覚機能などが足りない  ボストン・ダイナミクスでは平衡感覚機能は持っているように見える まだ時間は掛かりそうだけれど、人型アンドロイドは後5年ぐらい? 次世代ガジェットは人型のリアルアンドロイド!? (真のネクサス6はまだですか?)

Notas del editor

  1. 「ストリーミングアップデート」機能は、デバイス側でユーザーのデータストレージ容量が不十分なケースに対処するもので、ごくわずかな容量の一時的なストレージさえあれば済むようになる。 ストリーミングA/Bアップデートでは、一時的なストレージはほとんど必要なく、およそ100KiBのメタデータに対応できれば十分
  2. Android Stuidoを先に起動していないとダメかも?