diff --git a/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/ble_did.json b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/ble_did.json new file mode 100755 index 000000000..7ab859103 --- /dev/null +++ b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/ble_did.json @@ -0,0 +1,11 @@ +{ + "manufacture_name": "AIC Semiconductor", + "model_name": "AIC-BLE-1.0", + "serial_num": "1.0.0.0-LE", + "hw_version": "1.0.0" + "fw_version": "6.1.2", + "sw_version": "6.3.0", + "sys_id": "\x12\x34\x56\xFF\xFE\x9A\xBC\xDE", + "ieee_char": "\xFF\xEE\xDD\xCC\xBB\xAA", + "pnp_id": "\x02\x5E\x04\x40\x00\x00\x03" +} \ No newline at end of file diff --git a/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/ble_userconfig.json b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/ble_userconfig.json new file mode 100755 index 000000000..1cc151a79 --- /dev/null +++ b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/ble_userconfig.json @@ -0,0 +1,126 @@ +{ + "service": { + "uuid": [ + "0xfb", + "0x34", + "0x9b", + "0x5f", + "0x80", + "0x00", + "0x00", + "0x80", + "0x00", + "0x10", + "0x00", + "0x00", + "0xe7", + "0xfe", + "0x00", + "0x00" + ], + "sec_en": 0 + }, + "characteristic": [ + { + "uuid": [ + "0xfb", + "0x34", + "0x9b", + "0x5f", + "0x80", + "0x00", + "0x00", + "0x80", + "0x00", + "0x10", + "0x00", + "0x00", + "0xc8", + "0xfe", + "0x00", + "0x00" + ], + "properties": [ + "notification", + "indication", + "read" + ], + "max_len": 400 + }, + { + "uuid": [ + "0xfb", + "0x34", + "0x9b", + "0x5f", + "0x80", + "0x00", + "0x00", + "0x80", + "0x00", + "0x10", + "0x00", + "0x00", + "0xc7", + "0xfe", + "0x00", + "0x00" + ], + "properties": [ + "write" + ], + "max_len": 400 + }, + { + "uuid": [ + "0xfb", + "0x34", + "0x9b", + "0x5f", + "0x80", + "0x00", + "0x00", + "0x80", + "0x00", + "0x10", + "0x00", + "0x00", + "0xc9", + "0xfe", + "0x00", + "0x00" + ], + "properties": [ + "notification", + "indication", + "read" + ], + "max_len": 400 + }, + { + "uuid": [ + "0xfb", + "0x34", + "0x9b", + "0x5f", + "0x80", + "0x00", + "0x00", + "0x80", + "0x00", + "0x10", + "0x00", + "0x00", + "0xca", + "0xfe", + "0x00", + "0x00" + ], + "properties": [ + "write", + "write_no_response" + ], + "max_len": 400 + } + ] +} \ No newline at end of file diff --git a/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/lbh_client b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/lbh_client new file mode 100755 index 000000000..b6f7bbe77 Binary files /dev/null and b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/lbh_client differ diff --git a/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/lbh_server b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/lbh_server new file mode 100755 index 000000000..2c389044c Binary files /dev/null and b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/BT/lbh_server differ diff --git a/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/wifi/bin/wifi_init.sh b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/wifi/bin/wifi_init.sh index 7713433b3..790553249 100755 --- a/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/wifi/bin/wifi_init.sh +++ b/sdk/X-AIOS-LT00-V1.0.4/core/package/hardware/deviceDrv/wifi/aic8800d/prebuilts/moto_ld/wifi/bin/wifi_init.sh @@ -26,8 +26,9 @@ devmem 0x102000b8 32 0x00000003 #GPIO devmem 0x10200020 32 0x00000001 #devmem 0x1020009c 32 0x00000001 +devmem 0x10200098 32 0x00000001 -sleep 0.1 +#sleep 0.1 #echo 41 > /sys/class/gpio/export #echo out > /sys/class/gpio/gpio41/direction @@ -35,7 +36,7 @@ sleep 0.1 #echo 1 > /sys/class/gpio/gpio41/value #echo 0 > /sys/class/gpio/gpio41/value -#sleep 0.5 +sleep 0.5 echo 9 > /sys/class/gpio/export sleep 0.1 @@ -46,6 +47,16 @@ sleep 0.1 echo 1 > /sys/class/gpio/gpio9/value sleep 1 +sleep 0.5 +echo 39 > /sys/class/gpio/export +sleep 0.1 +echo out > /sys/class/gpio/gpio39/direction +sleep 0.1 +echo 0 > /sys/class/gpio/gpio39/value +sleep 0.2 +echo 1 > /sys/class/gpio/gpio39/value +sleep 0.2 + #echo "SDIO INIT begin" #cd bin;./wifi_drv_ins.sh;cd ../ @@ -53,26 +64,24 @@ sleep 1 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/vendor/qua/wifi/lib:/system/qua/wifi/lib/ export PATH=$PATH:/vendor/qua/BT:/vendor/qua/wifi/bin:/system/qua/BT:/system/qua/wifi/bin cd /vendor/qua/wifi/ko;insmod aic8800_bsp.ko aic_fw_path=/vendor/qua/wifi/aic8800D80 -insmod aic8800_fdrv.ko;insmod aic8800_btlpm.ko; -#insmod aic8800_fdrv.ko;insmod aic8800_btlpm.ko;cd ../../BT; +insmod aic8800_fdrv.ko;insmod aic8800_btlpm.ko;cd ../../BT; if [ ! -f /data/wifi/wpa_supplicant.conf ];then mkdir -p /data/wifi/ -#cp /etc/wpa_supplicant.conf /data/wifi/wpa_supplicant.conf wificfg.sh fi if [ -f /data/wifi/wpa_supplicant.conf ];then -wpa_supplicant -iwlan0 -D nl80211 -c /data/wifi/wpa_supplicant.conf -B -sleep 1 -udhcpc -T 2 -q -iwlan0 & + wpa_supplicant -iwlan0 -D nl80211 -c /data/wifi/wpa_supplicant.conf -B + sleep 1 + udhcpc -T 2 -q -iwlan0 & fi #bt is not -#sleep 30 -#lbh_server -p "ble_userconfig.json" -s ble uart 1500000 /dev/ttyS2 1>/dev/null 2>&1 & -#echo -100 > /proc/$(pidof lbh_server)/oom_score_adj -#sleep 5 -#lbh_client 1>/dev/null 2>&1 & -#lbh_client & -#echo -100 > /proc/$(pidof lbh_client)/oom_score_adj +sleep 30 +lbh_server -p "ble_userconfig.json" -s ble uart 1500000 /dev/ttyS2 1>/dev/null 2>&1 & +echo -100 > /proc/$(pidof lbh_server)/oom_score_adj +sleep 5 +lbh_client 1>/dev/null 2>&1 & +lbh_client & +echo -100 > /proc/$(pidof lbh_client)/oom_score_adj diff --git a/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_client b/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_client new file mode 100755 index 000000000..b6f7bbe77 Binary files /dev/null and b/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_client differ diff --git a/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_server b/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_server new file mode 100755 index 000000000..2c389044c Binary files /dev/null and b/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_server differ diff --git a/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/lib/liblbh_client_lib.so b/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/lib/liblbh_client_lib.so new file mode 100755 index 000000000..6bd068d77 Binary files /dev/null and b/sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/lib/liblbh_client_lib.so differ