Wifi経由のadb接続に必要なこと
- SmartQ5をWifi接続する(インフラストラクチャモードでしかつながりません)。
- SmartQ5のIPアドレスを調べる(設定 > ワイヤレス設定 > Wi-Fi設定 > Wi-Fiネットワーク名 で表示できます)。
- 設定 > アプリケーション > 開発 > USBデバッグ をチェック
やっておいた方がよいこと
うまくつながらない場合にこれらを試みましょう。
- 設定 > アプリケーション > 提供元不明のアプリ をチェック
- 設定 > アプリケーション > 開発 > スリープモードにしない をチェック
- 設定 > Covia Settings > Usb Setting > OTG Client Mode
- Dev Tools > Development Settings > Wait for debugger をチェック ←これはいらないかも
環境変数ADBHOSTを使う方法
Coviaのサポートフォーラム
に載っていた方法です。
以下の手順のip.address.of.smartq5は、調べたSmartQ5のIPアドレスで置き換えてください。
- 環境変数を設定
export ADBHOST=ip.address.of.smartq5
- サーバをリスタート
adb kill-server
adb start-server
- 確認
adb devices
List of devices attached
emulator-5554 device
adb connect を使う方法
Scenery and Fishさんのページ
に載っていた方法です(Scenery and Fishさん(というお名前なのかどうかも分かりませんが)ありがとうございます)。
以下の手順のip.address.of.smartq5は、調べたSmartQ5のIPアドレスで置き換えてください。
- サーバをリスタート
adb kill-server
adb start-server
- 接続する
adb connect ip.address.of.smartq5:5555
- 確認
adb devices
List of devices attached
ip.address.of.smartq5:5555 device
接続を切る(後者の方法の場合)
- 切断
adb disconnect ip.address.of.smartq5:5555
参考ページ
Tag: SmartQ 5 Covia 智器 Smart Devices adb WiFi Android Android SDK
htmlinsert(): The given wiki page must be edit_authed or frozen or whole system must be PKWK_READONLY.