... | @@ -104,100 +104,3 @@ AnWBTSRV_GetAllPairedDeviceInfo |
... | @@ -104,100 +104,3 @@ AnWBTSRV_GetAllPairedDeviceInfo |
|
1. [FUNC] supports basic BT pair & connect
|
|
1. [FUNC] supports basic BT pair & connect
|
|
|
|
|
|
<div style="page-break-after: always"></div> |
|
<div style="page-break-after: always"></div> |
|
|
|
|
|
# USAGE
|
|
|
|
1. Support HFP, A2DP, AVRCP, PBAP, .. AnW BT stack
|
|
|
|
2. Support Device Search & Pair, Call, Phonebook, Music, ...
|
|
|
|
3. If you want to use HFP, provide workaround.During the phone call, run following commands to establish audio path.
|
|
|
|
```
|
|
|
|
arecord -Dhw:0,1 -c2 -r16000 -fS16_LE | aplay -Ddefault -c2 -r8000 -fS16_LE
|
|
|
|
arecord -Ddefault -c2 -r8000 -fS16_LE | aplay -Dhw:0,1 -c2 -r8000 -fS16_LE
|
|
|
|
```
|
|
|
|
## Pre-Requirement
|
|
|
|
(FOR TAMUL WORK)
|
|
|
|
Modify combo module init script **/etc/init.d/ubloxinit.sh**
|
|
|
|
```plaintext
|
|
|
|
echo "[DDMISO] UBLOX Driver"
|
|
|
|
modprobe jody-w2-sdiouart
|
|
|
|
ifconfig uap0 192.168.1.10
|
|
|
|
hostapd /etc/ublox/hostapd.conf -B
|
|
|
|
udhcpd /etc/ublox/udhcpd.conf
|
|
|
|
ifconfig uap0 up
|
|
|
|
wpa_supplicant -B -D nl80211 -i mlan0 -c /etc/ublox/wpa_supplicant.conf
|
|
|
|
#modprobe jody-w2-sdiouart-bt
|
|
|
|
#hciattach /dev/ttyAMA1 any 3000000 flow
|
|
|
|
#hciconfig -a hci0 up
|
|
|
|
#hciconfig -a hci0
|
|
|
|
udhcpc -i mlan0
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run App on targets (tamul_btsrv_app.zip)
|
|
|
|
1. unzip
|
|
|
|
2. Copy results folder "/build/btsrv" to target "/home/btsrv"
|
|
|
|
3. go to target, in terminal entering /btsrv folder
|
|
|
|
4. run btsrv_client.sh to launch BTDemo demo app and following the menu commands or
|
|
|
|
```
|
|
|
|
>./btsrv_client.sh
|
|
|
|
```
|
|
|
|
## Install
|
|
|
|
```
|
|
|
|
Please select the function to test:
|
|
|
|
1. Install AnWBTService Sdk
|
|
|
|
2. Start btsrv
|
|
|
|
3. Stop btsrv
|
|
|
|
99. Exit btsrv Client.
|
|
|
|
>1
|
|
|
|
```
|
|
|
|
then audio (asound.conf) & App Settings will be copied install to system folder (e.g. /etc & /etc/anwbtservice)
|
|
|
|
```
|
|
|
|
install_btsrv /home/root/btsrv
|
|
|
|
bt service install successfully.
|
|
|
|
AnWBTService Sdk install successfully root path: /home/root/btsrv
|
|
|
|
```
|
|
|
|
**NOTICE!! The system is required to power off (hard reset) for alsa driver's correct reload.**
|
|
|
|
### structure(sta5_btsrv_app.zip)
|
|
|
|
<pre>
|
|
|
|
.
|
|
|
|
└── btsrv
|
|
|
|
├── BTDemo (sample program)
|
|
|
|
├── btsrv_client.sh (launcher for BTDemo)
|
|
|
|
└── etc
|
|
|
|
└──anwbtservice
|
|
|
|
├── \*.xml, \*.cfg (app settings)
|
|
|
|
└── lib
|
|
|
|
└── *.so (essentials libraries)
|
|
|
|
</pre>
|
|
|
|
## Customize on SDK (sta5_btsrv_sdk.zip)
|
|
|
|
1. unzip
|
|
|
|
2. in terminal entering ./anwbtsrv_sdk/Demo folder
|
|
|
|
3. setup tool-chain by command line (source ...) or edit in ./anwbtsrv_sdk/Demo/build_demo.sh
|
|
|
|
4. run make or build_demo.sh
|
|
|
|
|
|
|
|
```
|
|
|
|
> cd ./build/anwbtsrv_sdk/Demo
|
|
|
|
> source /opt/poky-**/2.5.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi
|
|
|
|
> make
|
|
|
|
or
|
|
|
|
>./build_demo.sh
|
|
|
|
```
|
|
|
|
then, result is collected in **./Demo/btsrv**
|
|
|
|
<div style="page-break-after: always"></div>
|
|
|
|
|
|
|
|
### structure(sta5_btsrv_sdk.zip)
|
|
|
|
<pre>
|
|
|
|
.
|
|
|
|
└── Demo
|
|
|
|
├── AnWBTServiceDemo.cpp (examples to use anwbtservice)
|
|
|
|
├── build_demo.sh (build script, call to make)
|
|
|
|
├── makefile (makefile for BTDemo)
|
|
|
|
├── btsrv_client.sh (launcher for BTDemo)
|
|
|
|
├── etc
|
|
|
|
│ └──anwbtservice
|
|
|
|
│ ├── \*.xml, \*.cfg (app settings)
|
|
|
|
│ └── lib
|
|
|
|
│ └── *.so (essentials libraries)
|
|
|
|
├── import (anwbtservice)
|
|
|
|
│ ├── anwbtservice.h (service api header)
|
|
|
|
│ └── \*.so (include libraries)
|
|
|
|
└── btsrv (ouput for produced, e.g. BTDemo)
|
|
|
|
</pre> |
|
|
|
\ No newline at end of file |
|
|