Home | History | Annotate | only in /external/bluetooth/bluedroid/test/bluedroidtest
Up to higher level directory
NameDateSize
Android.mk13-Nov-20121K
bluedroidtest.c13-Nov-201216.7K
README.txt13-Nov-20122.1K

README.txt

      1 Bluedroid Test Application
      2 ==========================
      3 The test application provides a small console shell interface that allows
      4 access to the Bluetooth HAL API library though ASCII commands. This is similar
      5 to how the real JNI service would operate. The primary objective of this
      6 application is to allow Bluetooth to be put in DUT Mode for RF/BB BQB test purposes.
      7 
      8 This application is mutually exclusive with the Java based Bluetooth.apk. Hence
      9 before launching the application, it should be ensured that the Settings->Bluetooth is OFF.
     10 
     11 This application is built as 'bdt' and shall be available in '/system/bin/bdt'
     12 
     13 Limitations
     14 ===========
     15 1.) Settings->Bluetooth must be OFF for this application to work
     16 2.) Currently, only the SIG 'HCI Test Mode' commands are supported. The vendor
     17 specific HCI test mode commands to be added.
     18 
     19 Usage instructions
     20 ==================
     21 The following section describes the various commands and their usage
     22 
     23 Launching the test application
     24 ==============================
     25 $ adb shell
     26 root@android:/ # /system/bin/bdt
     27 set_aid_and_cap : pid 1183, uid 0 gid 0
     28 :::::::::::::::::::::::::::::::::::::::::::::::::::
     29 :: Bluedroid test app starting
     30 Loading HAL lib + extensions
     31 HAL library loaded (Success)
     32 INIT BT
     33 HAL REQUEST SUCCESS
     34 
     35 Enabling Bluetooth
     36 ==================
     37 >enable
     38 ENABLE BT
     39 HAL REQUEST SUCCESS
     40 >ADAPTER STATE UPDATED : ON
     41 
     42 Enabling Test Mode (Bluetooth must be enabled for this command to work)
     43 ======================================================================
     44 >enable_test_mode
     45 ENABLE BT TEST MODE
     46 HAL REQUEST SUCCESS
     47 >
     48 
     49 Disabling Test Mode
     50 ===================
     51 >disable_test_mode
     52 DISABLE BT TEST MODE
     53 HAL REQUEST SUCCESS
     54 
     55 Exit the test application
     56 =========================
     57 >quit
     58 shutdown bdroid test app
     59 Unloading HAL lib
     60 HAL library unloaded (Success)
     61 :: Bluedroid test app terminating
     62 
     63 Help (Lists the available commands)
     64 ===================================
     65 >help
     66 help lists all available console commands
     67 
     68 quit
     69 enable :: enables bluetooth
     70 disable :: disables bluetooth
     71 enable_test_mode :: enters bluedroid test mode
     72 disable_test_mode :: exits bluedroid test mode
     73 
     74