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
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, ...
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
> export LD_LIBRARY_PATH="/home/btsrv/etc/anwbtservice/lib"
>./BTDemo
structure(tamul_btsrv_sdk-.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
>./build_demo.sh
or
> source /opt/poky-tamul/2.5.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi
> make
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)