顯示具有 Nexus 7 標籤的文章。 顯示所有文章
顯示具有 Nexus 7 標籤的文章。 顯示所有文章

2016年7月3日 星期日

Google Nexus 7: Enable BLE

since: 2016/07/03
update: 2016/07/03

reference:
1. Le IoT 想想物聯網: Google Nexus 7 Root + Enable BLE
2. Wug’s Nexus Root Toolkit v2.0.4
3. Nexus Root Toolkit v2.1.6 | WugFresh


A. Google Nexus 7 規格 (2012 WIFI)

-----------------------------------------------------------------------------------------------

B. 安裝 Nexus Root Toolkit

    從 Nexus Root Toolkit v2.1.6 | WugFresh 下載 NRT_v2.1.6.sfx.exe 並安裝

-----------------------------------------------------------------------------------------------

C. Model Type

    1. 安裝好後, 執行桌面的 Nexus Root Toolkit:
        > device: Nexus7 (Wi-Fi Table)
        > build: Android 5.1.1
        > Apply   

    2. enable USB Debugging on your device


    3. Download + Update All File Dependencies

-----------------------------------------------------------------------------------------------

D. Initial Setup:

    1. 點選: Full Driver Installation Guide - Automatic + Manual

    2. 第一次安裝, 直接點選 Step 3 頁籤:
        > 點選 "Google Drivers"

    3. 完成後, Windows 需要重新開機.

    4. 重新開機.後, 再執行一次 Nexus Root Toolkit
        > Step 4
        > Full Driver Test
        > 確定

-----------------------------------------------------------------------------------------------

E. Unlock
     > 點選 "Unlock"

    > 確定

     > (next)

    > (next)

-----------------------------------------------------------------------------------------------

F. Root

     > 點選 "Root"

     > 確定

     > 確定

-----------------------------------------------------------------------------------------------

G. Nexus 7: SuperSU & BusyBox
    1. 確認在 Nexus 7 上有 SuperSUBusyBox 的 app 圖示了

    2. 先執行 SuperSU 確認安裝完成,接著開啟 BusyBox Free

    3. 由於執行 BusyBox Free 不太順利, 所以直接買 BusyBox Pro ($64 NT)來試試:
        BusyBox Pro - Google Play Android 應用程式
 

    4. 成功了~

-----------------------------------------------------------------------------------------------

H.
Enable: Bluetooth Low Energy     
     > 直接購買: Bluetooth Low Energy Enabler - Google Play Android 應用程式
     ($300 NT)



-----------------------------------------------------------------------------------------------

I. BLE (Bluetooth low energy)測試

    1. BLE 檢測軟體:
        BLE Checker - Google Play Android 應用程式

   > 結果:

    2. Beacon Scanner:
        Beacon Scanner & Transmitter - Google Play Android 應用程式

     > 掃描中...

     > 結果

2013年2月23日 星期六

Setting Up the Android Device for Development on Windows7

since: 2013/02/23
update: 2013/02/23

reference:
1. OEM USB Drivers | Android Developers2. Using Hardware Devices | Android Developers


A. 安裝 Google USB Driver
     1. Eclipse > Window > Android SDK Manager:

     2. 確認 Google USB Driver 為 Installed.

     3. 關閉 Eclipse.
-------------------------------------------------------------------------------------------

B. 開啟 Android 設備上的 USB 測試功能
     1. 打開 Android 設備(在此為 Nexus 7 版本: 4.2.2)

     2. 設定 > 關於平板電腦 > 版本號碼
         連續點擊 "版本號碼" 數次後,Android 會回應你再點擊三次就表示你是
         開發人員的訊息(訊息會出現在螢幕下方,而且會有次數)。
         此時繼續點擊,點擊到 Android 告訴你 "開發人員選項" 已開啟為止。

     3. 回到上一層,點選 "開發人員選項".
         > 勾選 "USB 偵錯".

     4. 接著用 USB 跟電腦連接,這時電腦會出現安裝驅動程式,先不用理會.

-------------------------------------------------------------------------------------------

C. 安裝 Android 設備的驅動程式
     1. 電腦 > 內容 > 裝置管理員 > 可攜式裝置 > "顯示驚嘆號的設備"

     2. "顯示驚嘆號的設備" > 右鍵 > "更新驅動程式軟體"
         > "瀏覽電腦上的驅動程式軟體"
         > 選取剛剛安裝的 Google USB Driver:
            C:\Lanli\EclipseAndroidDev\android-sdk-windows\extras\google\usb_driver
         > 下一步, 接著電腦就會自動安裝.

-------------------------------------------------------------------------------------------

D. 在 Eclipse 裡, 啟用 Debug 功能

     1. 開啟專案後, 打開 AndroidManifest.xml 檔案, 在 <application> 標籤裡,
         加入以下的屬性設定: android:debuggable="true"
         備註: a. 可以不需要設定, 因為使用 Eclipse 來啓動 App 會自動啓用 Debug 模式.
                  b. 如果手動啟用了, 記得在 buildrelease App 之前, 將其停用.

     2. Run > Run Configurations > Android Application > 專案名稱:
         > 右邊 Target 頁籤
         > Deploy Target Selection Mode: Always prompt to pick device
    備註: 如此一來, 每次執行時皆可選擇設備.

-------------------------------------------------------------------------------------------

E. 執行應用程式
     1. 選取專案 > 右鍵 >  "Run As" > "Android Application"

     2. 選取 Android 設備 > OK

-------------------------------------------------------------------------------------------

F. 備註: 在 Mac OS X 上實機測試
    1. 不需要安裝 USB Driver

    2. 只需要 B, DE 的步驟即可.