add bt server fix reboot wlan0 not exist
This commit is contained in:
parent
cec15b4c56
commit
cb444dd24e
@ -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"
|
||||||
|
}
|
||||||
@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@ -26,8 +26,9 @@ devmem 0x102000b8 32 0x00000003
|
|||||||
#GPIO
|
#GPIO
|
||||||
devmem 0x10200020 32 0x00000001
|
devmem 0x10200020 32 0x00000001
|
||||||
#devmem 0x1020009c 32 0x00000001
|
#devmem 0x1020009c 32 0x00000001
|
||||||
|
devmem 0x10200098 32 0x00000001
|
||||||
|
|
||||||
sleep 0.1
|
#sleep 0.1
|
||||||
|
|
||||||
#echo 41 > /sys/class/gpio/export
|
#echo 41 > /sys/class/gpio/export
|
||||||
#echo out > /sys/class/gpio/gpio41/direction
|
#echo out > /sys/class/gpio/gpio41/direction
|
||||||
@ -35,7 +36,7 @@ sleep 0.1
|
|||||||
#echo 1 > /sys/class/gpio/gpio41/value
|
#echo 1 > /sys/class/gpio/gpio41/value
|
||||||
#echo 0 > /sys/class/gpio/gpio41/value
|
#echo 0 > /sys/class/gpio/gpio41/value
|
||||||
|
|
||||||
#sleep 0.5
|
sleep 0.5
|
||||||
|
|
||||||
echo 9 > /sys/class/gpio/export
|
echo 9 > /sys/class/gpio/export
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
@ -46,6 +47,16 @@ sleep 0.1
|
|||||||
echo 1 > /sys/class/gpio/gpio9/value
|
echo 1 > /sys/class/gpio/gpio9/value
|
||||||
sleep 1
|
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"
|
#echo "SDIO INIT begin"
|
||||||
|
|
||||||
#cd bin;./wifi_drv_ins.sh;cd ../
|
#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 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
|
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
|
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
|
if [ ! -f /data/wifi/wpa_supplicant.conf ];then
|
||||||
mkdir -p /data/wifi/
|
mkdir -p /data/wifi/
|
||||||
#cp /etc/wpa_supplicant.conf /data/wifi/wpa_supplicant.conf
|
|
||||||
wificfg.sh
|
wificfg.sh
|
||||||
fi
|
fi
|
||||||
if [ -f /data/wifi/wpa_supplicant.conf ];then
|
if [ -f /data/wifi/wpa_supplicant.conf ];then
|
||||||
wpa_supplicant -iwlan0 -D nl80211 -c /data/wifi/wpa_supplicant.conf -B
|
wpa_supplicant -iwlan0 -D nl80211 -c /data/wifi/wpa_supplicant.conf -B
|
||||||
sleep 1
|
sleep 1
|
||||||
udhcpc -T 2 -q -iwlan0 &
|
udhcpc -T 2 -q -iwlan0 &
|
||||||
fi
|
fi
|
||||||
#bt is not
|
#bt is not
|
||||||
#sleep 30
|
sleep 30
|
||||||
#lbh_server -p "ble_userconfig.json" -s ble uart 1500000 /dev/ttyS2 1>/dev/null 2>&1 &
|
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
|
echo -100 > /proc/$(pidof lbh_server)/oom_score_adj
|
||||||
#sleep 5
|
sleep 5
|
||||||
#lbh_client 1>/dev/null 2>&1 &
|
lbh_client 1>/dev/null 2>&1 &
|
||||||
#lbh_client &
|
lbh_client &
|
||||||
#echo -100 > /proc/$(pidof lbh_client)/oom_score_adj
|
echo -100 > /proc/$(pidof lbh_client)/oom_score_adj
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_client
Executable file
BIN
sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_client
Executable file
Binary file not shown.
BIN
sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_server
Executable file
BIN
sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/bin/lbh_server
Executable file
Binary file not shown.
BIN
sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/lib/liblbh_client_lib.so
Executable file
BIN
sdk/X-AIOS-LT00-V1.0.4/product/demo_ld/rootfs_overlay/lib/liblbh_client_lib.so
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user