AnW_BT_SRV
AnW Bluetooth Service API, offered two sorts of releases
- APP Release (tamul_btsrv_app) : executable BTDemo, launcher btsrv_client.sh, essentails libraries (.so), and App configures (.xml)
- SDK Release (tamul_btsrv_sdk) : open source with AnWBTServiceDemo.cpp, imported essentials libraries (.so), header (anwbtservice.h), and App configures (.xml)
RELEASE NOTE
20220318 TAG:1.0.1.26
- Provide AnWBTSRV_HFP_Enable_Audio_Flow function
20220317 TAG:1.0.1.24
- Change CFG_HFPAG_PRESENT to 0.
20220315 TAG:1.0.1.23
- Added HFP audio wrapper implementation for Tamul platform.
- Enable I2S setting in anwbt.h.
20220303 TAG:1.0.1.22
- Fixed Marvell DSPMgr NBS mode did not working.
- Fixed DSPMgr flow was disabled in SDK layer.
20220301 TAG:1.0.1.21
- Add: workaround.During the phone call, run following commands to establish audio path.
20220223 TAG:1.0.1.20
- Add: "AnWBTSRV_SPP_GetInformation", to get get CP & AA spp uuid information
- Clear Log
20220223 TAG:1.0.1.18
- patch audio sound config.
20220222 TAG:1.0.1.10
- RAT pass : iPhone/Android + bi-direction connecting. HFP/A2DP/AVRCP/CA/BR
20220221 TAG:1.0.1.8
- add AVRCP_BR, AVRCP_CA profile support
- add menu test function of "CA", "BT" ..
20220214 TAG:1.0.0.6
- add AVRCP, A2DP profile support
- add menu test function of "A2DP", "AVRCP" ..
20220128 TAG:1.0.0.1
- [FUNC]supports pbap downloading & data callback
- [DEMO]update service demo
- [DOC]update SDK API Document
20220128 TAG:1.0.0.1
- [FUNC]supports pbap downloading & data callback
- [DEMO]update service demo
- [DOC]update SDK API Document
20220121 TAG:0.0.03
- [FUNC]supports android auto connect & write data to android
- [FUNC]Add some functions, For details, refer to anwbtservice.h
20220118 TAG:TAMUL_BT_V2
- [FUNC]supports iphone carplay connect & write carplay data to iphone
20220117 TAG:TAMUL_BT_V1
- [FUNC] supports basic BT pair & connect
USAGE
- Support HFP, A2DP, AVRCP, PBAP, .. AnW BT stack
- Support Device Search & Pair, Call, Phonebook, Music, ...
- 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
Modify combo module init script /etc/init.d/ubloxinit.sh
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)
- 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 & /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(tamul_btsrv_app-.zip)
. └── btsrv ├── BTDemo (sample program) ├── btsrv_client.sh (launcher for BTDemo) └── etc └──anwbtservice ├── \*.xml, \*.cfg (app settings) └── lib └── *.so (essentials libraries)
Customize on SDK (tamul_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-tamul/2.5.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi
> make
or
>./build_demo.sh
then, result is collected in ./Demo/btsrv
structure(tamul_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)