JODY-W2 - System integration manual
UBX-18068879 - R14
Software
Page 56 of 84
C1 - Public
Here is an excerpt which shows the command to scan, results are displayed along with it.
L2CAP echo requests can be used to ping the remote devices.
Sleep mode configuration
Quite often modules are used in sleep mode to conserve power and improve the efficiency based on
the application. Use the following procedure to enable deep sleep on JODY-W2 modules.
1.
Download the driver by enabling power save methods.
a.
SDIO driver for Wi-Fi and Bluetooth.
b.
For Bluetooth connected over UART
2.
Set Bluetooth and Bluetooth LE sleep modes using HCI commands
☞
For deep-sleep power consumption measurements, disable network managing utilities like
hostapd, wpa_supplicant,
and
network-manager
.
# hcitool -ihci0 scan
Scanning ...
8C:83:E1:77:22:55 Galaxy S9
B4:69:21:62:32:6F DE-BLN-LT-020
30:F7:72:11:D6:6C KD-55X8505C
64:A2:F9:36:97:B5 ubx-ae
# l2ping 64:A2:F9:36:97:B5
Ping: 64:A2:F9:36:97:B5 from D4:CA:6E:00:1B:16 (data size 44) ...
44 bytes from 64:A2:F9:36:97:B5 id 0 time 8.16ms
44 bytes from 64:A2:F9:36:97:B5 id 1 time 53.00ms
44 bytes from 64:A2:F9:36:97:B5 id 2 time 35.99ms
44 bytes from 64:A2:F9:36:97:B5 id 3 time 83.90ms
4 sent, 4 received, 0% loss
# insmod mlan.ko
# insmod sd8987.ko fw_name=mrvl/sdsd8987_combo_jody-w2-sdio.bin
cfg80211_wext=0xf cal_data_cfg=none drv_mode=1
ps_mode=1 auto_ds=1
# insmod ./bt8987.ko psmode=1 deep_sleep=1
# insmod ./hci_uart.ko
ps_mode=1
# Bind the device node to the HCI interface
# hciattach /dev/ttyUSB0 any 3000000 flow
# hciconfig -a hci0 up
# hcitool -i hci0 cmd 3F 23 02 # enable BT power save
# hcitool -i hci0 cmd 3F 8B 01 # enable BLE power save