先日(2018/5/8-10)開催されたGoogleの開発者向けイベント「Google I/O 2018」でAndroid Things 1.0が発表された.
先週さっそく試そうと, Android Things Setup Utility v1.0.20を使ってセットアップを試みたが, すんなり動いてくれなかったので, 少し状況をまとめておく.
1. Android Thingsのインストール[1]
今回の開発環境は以下の通り.
- Host PC : Windows 10 Pro
- Hardware : Raspberry Pi 3
- WiFi AP : Buffalo WZR-300HP
Android Thingsのインストールは, ここからSetup Utilityをダウンロードし, 実行することで簡単に行える.
[実行ログ]
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
1
You chose Raspberry Pi 3.
Setting up required tools...
Fetching additional configuration...
Downloading platform tools...
4.74 MB/4.74 MB
Unzipping platform tools...
Finished setting up required tools.
Raspberry Pi 3
Do you want to use the default image or a custom image?
1 - Default image: Used for development purposes. 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...
331 MB/331 MB
Unzipping image...
Downloading Etcher-cli, a tool to flash your SD card...
19.8 MB/19.8 MB
Unzipping Etcher-cli...
Plug the SD card into your computer. Press [Enter] when ready
Running Etcher-cli...
? Select drive \\.\PHYSICALDRIVE2 (32.0 GB) - USB Mass Storage Device USB Device
? This will erase the selected drive. Are you sure? Yes
Flashing [========================] 100% eta 0s
Validating [========================] 100% eta 0s
iot_rpi3.img was successfully written to USB Mass Storage Device USB Device (H:)
Checksum: e41d659a
If you have successfully installed Android Things on your SD card, you can now
put the SD card into the Raspberry Pi and power it up. Otherwise you can abort
and run the tool again.
Would you like to set up Wi-Fi on this device? (y/n)
インストールは特に問題なし.
2. Wifiの設定[2]
次に, WiFiの設定を行う.
[実行ログ]
Would you like to set up Wi-Fi on this device? (y/n) y
Please plug your Raspberry Pi to your router with an Ethernet cable, then press [Enter].
Attempting to connect to your Raspberry Pi at Android.local...
Connected to device through Ethernet.
Enter the Wi-Fi network name: XXXXXX
Enter the Wi-Fi network password (leave empty if no password):
Connecting to Wi-Fi network XXXXXX...
Looking for device... This can take up to 3 minutes.
Error: unable to connect to Wifi: device not found: timed out
Stopping adb server...
Stopped adb server...
If you are having trouble using the Setup Utility, please file a ticket at
https://issuetracker.google.com/issues/new?component=1xxxxx.
Press [Enter] to quit.
と, デバイス(ここではAPかな?)が見つけられず, WiFi接続に失敗した.
Logcatのログなども少し確認したが原因がよくわからない.
Google Issue Trackerに報告しろとのことなので, とりあえずバグ登録した.
今日少し時間があったので再度トライ.
いろいろと試している中で, WiFi APのSSIDをステルス設定していることを思い出した.
そこで, ステルス設定を解除し試すと, いとも簡単にWiFi接続できてしまった.
WiFi接続できない直接の原因は, Setup UtilityがステルスSSIDに未対応だったことのようだ...
では, ステルスSSIDのWiFi APに接続するにはどうすればよいのか?
答えは, ここを参考に, 以下のようなコマンドで接続できることを確認した.
> adb connect Android.local
connected to Android.local:5555
> adb shell am startservice \
-n com.google.wifisetup/.WifiSetupService \
-a WifiSetupService.Connect \
-e ssid <Network_SSID> \
-e passphrase <Network_Passcode> \
--ez hidden true
Issue Trackerには, ステルスSSIDが原因でつながらなかったと, 追加メッセージを書き込んでおいた.
ただ, できればSetup UtilityでもステルスSSIDに対応してほしいものだ...
----
参照URL:
[1] Raspberry Pi 3 | Android Things | Android Developers
[2] Connecting to Wi-Fi with adb | Android Things | Android Developers
<center><a href=https://seoprofisional.ru/bazy/baza-dlya-xrumera><img src="https://seoprofisional.ru/image/catalog/-%D1%81%D0%B0%D0%B9%D1%82%D0%B0-%D0%B4%D0%BB%D1%8F-%D0%B1%D0%B8%D0%B7%D0%BD%D0%B5%D1%81%D0%B0-%D1%81%D1%81%D1%8B%D0%BB%D0%BA%D0%B0%D0%BC%D0%B8-520x245.jpg"></a>
<b>Собралась новая база для хрумера, актив линков от 12 августа 2022 года. В базе 12100 ссылок без дублей . База микс присутствуют все доменные зоны так же постит везде профиля топики коменты собиралась 4 месяца ссылки все вечные считай подойдет как для ссылочного так и для постинга по все вопросам обращайтесь в скайп логин pokras7777 или в телеграмм pokras7777 fedin наша группа в телеграмме ответим на все интересующие вас вопросы !</b>
<b>ДЛЯ СВЯЗИ С НАМИ ПИШИТЕ В СКАЙП ЛОГИН <a href=https://join.skype.com/AnXAQ9LfhMi8>ЛОГИН POKRAS7777 </a>
ЛИБО В <a href=https://goo.su/4zRx>ТЕЛЕГРАММ </a></center></b>
<a href=https://seoprofisional.ru> как собрать базы для хрумера </a>