Reference Manual

Table Of Contents
RS9116 n-Link Linux and Android Technical Reference Manual
Version 2.0
August 2019
29
Note:
For SDIO mode, ensure that the SDIO stack related modules are already inserted in the kernel
refer
Appendix A: Configuration of Kernels from 3.13 and above section to install sdio stack
modules .
1. Follow the instructions in section 4.4.1 Installation in Wi-Fi Client Mode, inorder to install the Wi-Fi Client
mode.
2. Run the bt_enable.sh or wlan_bt_insert.sh or onebox_insert.sh script present in the "release" folder as
per the instructions present in the section 4.1 inorder to start the Bluetooth LE mode. This script inserts
Bluetooth modules as well as common HAL modules, provided if it is not inserted initially.
3. You can check whether the BLE mode has been started successfully or not, by running the following
command:
# hciconfig
If the driver is loaded correctly, the above command displays a network adaptor named "hciX". An example output
is given below:
hci0:Type: BR/EDR Bus: SDIO
BD Address: 00:23:A7:00:05:68 ACL MTU: 1021:8 SCO MTU: 30:8
UP RUNNING PSCAN
RX bytes:478 acl:0 sco:0 events:20 errors:0
TX bytes:331 acl:0 sco:0 commands:19 errors:0
 4. After the device is up, we can Advertise, Scan and Connect with other BLE devices. The device can be
configured using hcitool or hciconfig.
4.5.1 Advertise, Scan, Connect Commands
The commands for Advertise, Scan and Connect are as follows:
Enable Advertise
# hciconfig –a <hciX> leadv
Disable Advertise
# hciconfig –a <hciX> noleadv
Initiate Scan
# hcitool -i <hciX> lescan
The above command displays the scan responses and advertising information.
Master Mode Connected State
Ensure that the remote device is in Advertise mode and then issue the command given below: