... | @@ -9,6 +9,23 @@ AnW Bluetooth Service API, offered two sorts of releases |
... | @@ -9,6 +9,23 @@ AnW Bluetooth Service API, offered two sorts of releases |
|
1. Support HFP, A2DP, AVRCP, PBAP, .. AnW BT stack
|
|
1. Support HFP, A2DP, AVRCP, PBAP, .. AnW BT stack
|
|
2. Support Device Search & Pair, Call, Phonebook, Music, ...
|
|
2. Support Device Search & Pair, Call, Phonebook, Music, ...
|
|
|
|
|
|
|
|
|
|
|
|
# APP Package
|
|
|
|
## structure(sta5_btsrv_app.zip)
|
|
|
|
<pre>
|
|
|
|
.
|
|
|
|
└── 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)
|
|
|
|
</pre>
|
|
|
|
|
|
## Run App on targets (sta5_btsrv_app.zip)
|
|
## Run App on targets (sta5_btsrv_app.zip)
|
|
1. unzip
|
|
1. unzip
|
|
2. Copy results folder "/build/btsrv" to target "/home/btsrv"
|
|
2. Copy results folder "/build/btsrv" to target "/home/btsrv"
|
... | @@ -17,7 +34,7 @@ AnW Bluetooth Service API, offered two sorts of releases |
... | @@ -17,7 +34,7 @@ AnW Bluetooth Service API, offered two sorts of releases |
|
```
|
|
```
|
|
>./btsrv_client.sh
|
|
>./btsrv_client.sh
|
|
```
|
|
```
|
|
## Install
|
|
### install
|
|
```
|
|
```
|
|
Please select the function to test:
|
|
Please select the function to test:
|
|
1. Install AnWBTService Sdk
|
|
1. Install AnWBTService Sdk
|
... | @@ -33,37 +50,19 @@ bt service install successfully. |
... | @@ -33,37 +50,19 @@ bt service install successfully. |
|
AnWBTService Sdk install successfully root path: /home/root/btsrv
|
|
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.**
|
|
**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
|
|
|
|
├── 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)
|
|
|
|
</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
|
|
|
|
|
|
|
|
|
|
### launch **BTDemo**
|
|
```
|
|
```
|
|
> cd ./build/anwbtsrv_sdk/Demo
|
|
Please select the function to test:
|
|
> source /opt/poky-**/2.5.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi
|
|
1. Install AnWBTService Sdk
|
|
> make
|
|
2. Start btsrv
|
|
or
|
|
3. Stop btsrv
|
|
>./build_demo.sh
|
|
99. Exit btsrv Client.
|
|
|
|
>2
|
|
```
|
|
```
|
|
then, result is collected in **./Demo/btsrv**
|
|
|
|
<div style="page-break-after: always"></div>
|
|
|
|
|
|
|
|
### structure(sta5_btsrv_sdk.zip)
|
|
# SDK Package
|
|
|
|
## structure(sta5_btsrv_sdk.zip)
|
|
<pre>
|
|
<pre>
|
|
.
|
|
.
|
|
└── Demo
|
|
└── Demo
|
... | @@ -81,3 +80,19 @@ then, result is collected in **./Demo/btsrv** |
... | @@ -81,3 +80,19 @@ then, result is collected in **./Demo/btsrv** |
|
│ └── \*.so (include libraries)
|
|
│ └── \*.so (include libraries)
|
|
└── btsrv (ouput for produced, e.g. BTDemo)
|
|
└── btsrv (ouput for produced, e.g. BTDemo)
|
|
</pre>
|
|
</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> |