... | @@ -46,14 +46,14 @@ udhcpc -i mlan0 |
... | @@ -46,14 +46,14 @@ udhcpc -i mlan0 |
|
3. go to target, in terminal entering /btsrv folder
|
|
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
|
|
4. run btsrv_client.sh to launch BTDemo demo app and following the menu commands or
|
|
|
|
|
|
```plaintext
|
|
```
|
|
> export LD_LIBRARY_PATH="/home/btsrv"
|
|
> export LD_LIBRARY_PATH="/home/btsrv"
|
|
>./BTDemo
|
|
>./BTDemo
|
|
```
|
|
```
|
|
|
|
|
|
### set device name
|
|
### set device name
|
|
|
|
|
|
```plaintext
|
|
```
|
|
================bluetooth menu=================
|
|
================bluetooth menu=================
|
|
1.EXIT
|
|
1.EXIT
|
|
2.BTPowerOn
|
|
2.BTPowerOn
|
... | @@ -70,7 +70,7 @@ udhcpc -i mlan0 |
... | @@ -70,7 +70,7 @@ udhcpc -i mlan0 |
|
|
|
|
|
### power on init
|
|
### power on init
|
|
|
|
|
|
```plaintext
|
|
```
|
|
================bluetooth menu=================
|
|
================bluetooth menu=================
|
|
1.EXIT
|
|
1.EXIT
|
|
2.BTPowerOn
|
|
2.BTPowerOn
|
... | @@ -86,7 +86,7 @@ Note: Looking for device name (e.g. TAMUL_MARVELL) from mobile, then pair the de |
... | @@ -86,7 +86,7 @@ Note: Looking for device name (e.g. TAMUL_MARVELL) from mobile, then pair the de |
|
|
|
|
|
### spp connect
|
|
### spp connect
|
|
|
|
|
|
```plaintext
|
|
```
|
|
================ BT Test Menu =================
|
|
================ BT Test Menu =================
|
|
1. Exit
|
|
1. Exit
|
|
2. StartInquiry
|
|
2. StartInquiry
|
... | @@ -103,7 +103,7 @@ Note: Looking for device name (e.g. TAMUL_MARVELL) from mobile, then pair the de |
... | @@ -103,7 +103,7 @@ Note: Looking for device name (e.g. TAMUL_MARVELL) from mobile, then pair the de |
|
|
|
|
|
Note: You can find mobile BT mac from **"Setting->General->About-> Bluetooth"**
|
|
Note: You can find mobile BT mac from **"Setting->General->About-> Bluetooth"**
|
|
|
|
|
|
```plaintext
|
|
```
|
|
> input profile_mask: 0x00000100
|
|
> input profile_mask: 0x00000100
|
|
```
|
|
```
|
|
|
|
|
... | @@ -111,7 +111,7 @@ Note: Then, connected. |
... | @@ -111,7 +111,7 @@ Note: Then, connected. |
|
|
|
|
|
### spp write
|
|
### spp write
|
|
|
|
|
|
```plaintext
|
|
```
|
|
================ BT Test Menu =================
|
|
================ BT Test Menu =================
|
|
1. Exit
|
|
1. Exit
|
|
2. StartInquiry
|
|
2. StartInquiry
|
... | @@ -126,15 +126,15 @@ Note: Then, connected. |
... | @@ -126,15 +126,15 @@ Note: Then, connected. |
|
|
|
|
|
Note: You can find mobile BT mac from **"Setting->General->About-> Bluetooth"**
|
|
Note: You can find mobile BT mac from **"Setting->General->About-> Bluetooth"**
|
|
|
|
|
|
```plaintext
|
|
```
|
|
>input IAP_data:**ff,55,2,0,ee,10** (for example)
|
|
>input IAP_data:ff,55,2,0,ee,10 (for example)
|
|
```
|
|
```
|
|
|
|
|
|
Note: Then, you can receive data back from IPHONE, check log printed:
|
|
Note: Then, you can receive data back from IPHONE, check log printed:
|
|
|
|
|
|
```plaintext
|
|
```plaintext
|
|
AnWBTService_SPP_DATA_IND_S sppData:
|
|
AnWBTService_SPP_DATA_IND_S sppData:
|
|
[ff] [55] [2] [0] [ee] [10]**
|
|
[ff] [55] [2] [0] [ee] [10]
|
|
```
|
|
```
|
|
|
|
|
|
## Customize on SDK (tamul_release-.zip)
|
|
## Customize on SDK (tamul_release-.zip)
|
... | @@ -144,7 +144,7 @@ AnWBTService_SPP_DATA_IND_S sppData: |
... | @@ -144,7 +144,7 @@ AnWBTService_SPP_DATA_IND_S sppData: |
|
3. setup tool-chain by command line (source ...) or edit in ./anwbtsrv_sdk/Demo/build_demo.sh
|
|
3. setup tool-chain by command line (source ...) or edit in ./anwbtsrv_sdk/Demo/build_demo.sh
|
|
4. run make or build_demo.sh
|
|
4. run make or build_demo.sh
|
|
|
|
|
|
```plaintext
|
|
```
|
|
> cd ./build/anwbtsrv_sdk/Demo
|
|
> cd ./build/anwbtsrv_sdk/Demo
|
|
> source /opt/poky-tamul/2.5.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi
|
|
> source /opt/poky-tamul/2.5.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi
|
|
> make or ./build_demo.sh
|
|
> make or ./build_demo.sh
|
... | | ... | |