AnW_BT_SRV
AnW Bluetooth Service API, offered two sorts of releases
- APP Release (sta5_btsrv_sdk_*) : executable BTDemo, launcher btsrv_client.sh, essentials libraries (.so), and App configures (.xml)
- SDK Release (sta5_btsrv_sdk_*) : open source with AnWBTServiceDemo.cpp, imported essentials libraries (.so), header (anwbtservice.h), and App configures (.xml)
USAGE
- Support HFP, A2DP, AVRCP, PBAP, .. AnW BT stack
- Support Device Search & Pair, Call, Phonebook, Music, ...
APP Package
structure(sta5_btsrv_app.zip)
.
└── btsrv
├── BTDemo (sample program)
├── btsrv_client.sh (launcher for BTDemo)
└── etc
└──anwbtservice
├── btmonitor-config.xml (app configures, e.g. log switch)
├── anw_*_setting.cfg (phone link app settings, e.g. CP/AA)
├── anw_*_setting.xml (phone link app settings, e.g. CP/AA)
└── lib
└── *.so (essentials libraries)
Run App on targets (sta5_btsrv_app.zip)
- unzip
- Copy results folder "/build/btsrv" to target "/home/btsrv"
- go to target, in terminal entering /btsrv folder
- 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/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.
launch BTDemo
Please select the function to test:
1. Install AnWBTService Sdk
2. Start btsrv
3. Stop btsrv
99. Exit btsrv Client.
>2
SDK Package
structure(sta5_btsrv_sdk.zip)
.
└── 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)
Customize on SDK (sta5_btsrv_sdk.zip)
- unzip
- in terminal entering ./anwbtsrv_sdk/Demo folder
- setup tool-chain by command line (source ...) or edit in ./anwbtsrv_sdk/Demo/build_demo.sh
- 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