... | @@ -572,7 +572,10 @@ Note: You can find mobile BT mac from "Setting->General->About-> Bluetooth" (iph |
... | @@ -572,7 +572,10 @@ Note: You can find mobile BT mac from "Setting->General->About-> Bluetooth" (iph |
|
================== pbap Menu ==================
|
|
================== pbap Menu ==================
|
|
1.Exit
|
|
1.Exit
|
|
2.SYNCSTART
|
|
2.SYNCSTART
|
|
3.SYNCCANCEL
|
|
3.SYNCCANCEL
|
|
|
|
4.AnWBTSRV_PBAP_GetContactBaseOnContactID
|
|
|
|
5.AnWBTSRV_PBAP_GetCalllogBaseOnCallID
|
|
|
|
6.AnWBTSRV_PBAP_GetNumbersBaseOnContactID
|
|
===============================================
|
|
===============================================
|
|
>input num:2
|
|
>input num:2
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
... | @@ -595,11 +598,344 @@ AnWBTService_PBAP_CALLLOG_DATA_S callID[123] callTYPE[2] fnLen[0] fn[] number[05 |
... | @@ -595,11 +598,344 @@ AnWBTService_PBAP_CALLLOG_DATA_S callID[123] callTYPE[2] fnLen[0] fn[] number[05 |
|
================== pbap Menu ==================
|
|
================== pbap Menu ==================
|
|
1.Exit
|
|
1.Exit
|
|
2.SYNCSTART
|
|
2.SYNCSTART
|
|
3.SYNCCANCEL
|
|
3.SYNCCANCEL
|
|
|
|
4.AnWBTSRV_PBAP_GetContactBaseOnContactID
|
|
|
|
5.AnWBTSRV_PBAP_GetCalllogBaseOnCallID
|
|
|
|
6.AnWBTSRV_PBAP_GetNumbersBaseOnContactID
|
|
===============================================
|
|
===============================================
|
|
>input num:2
|
|
>input num:2
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
|
```
|
|
```
|
|
then the pbap SYNC will cancel and stop
|
|
then the pbap SYNC will cancel and stop
|
|
|
|
|
|
|
|
## get contactData
|
|
|
|
```
|
|
|
|
================== pbap Menu ==================
|
|
|
|
1.Exit
|
|
|
|
2.SYNCSTART
|
|
|
|
3.SYNCCANCEL
|
|
|
|
4.AnWBTSRV_PBAP_GetContactBaseOnContactID
|
|
|
|
5.AnWBTSRV_PBAP_GetCalllogBaseOnCallID
|
|
|
|
6.AnWBTSRV_PBAP_GetNumbersBaseOnContactID
|
|
|
|
===============================================
|
|
|
|
>input num:4
|
|
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
|
|
|
>input contactID:1
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
## get calllogData
|
|
|
|
```
|
|
|
|
================== pbap Menu ==================
|
|
|
|
1.Exit
|
|
|
|
2.SYNCSTART
|
|
|
|
3.SYNCCANCEL
|
|
|
|
4.AnWBTSRV_PBAP_GetContactBaseOnContactID
|
|
|
|
5.AnWBTSRV_PBAP_GetCalllogBaseOnCallID
|
|
|
|
6.AnWBTSRV_PBAP_GetNumbersBaseOnContactID
|
|
|
|
===============================================
|
|
|
|
>input num:5
|
|
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
|
|
|
>input callID:1
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
## get telephoneData
|
|
|
|
```
|
|
|
|
================== pbap Menu ==================
|
|
|
|
1.Exit
|
|
|
|
2.SYNCSTART
|
|
|
|
3.SYNCCANCEL
|
|
|
|
4.AnWBTSRV_PBAP_GetContactBaseOnContactID
|
|
|
|
5.AnWBTSRV_PBAP_GetCalllogBaseOnCallID
|
|
|
|
6.AnWBTSRV_PBAP_GetNumbersBaseOnContactID
|
|
|
|
===============================================
|
|
|
|
>input num:6
|
|
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
|
|
|
>
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
# MAP Menu
|
|
|
|
## connect map
|
|
|
|
we can input profile_mask:0x00000020
|
|
|
|
```
|
|
|
|
================ common Menu ==================
|
|
|
|
1.Exit
|
|
|
|
2.StartInquiry
|
|
|
|
...
|
|
|
|
8.ConnectDevice
|
|
|
|
9.DisconnectDevice
|
|
|
|
10.SPP_Write
|
|
|
|
11.SetScanMode
|
|
|
|
12.GetScanMode
|
|
|
|
...
|
|
|
|
===============================================
|
|
|
|
> input num: 8
|
|
|
|
...
|
|
|
|
> input connect addr(xx:xx:xx:xx:xx:xx): 11:e8:14:da:61:d4 (for example)
|
|
|
|
>input profile_mask: 0x00000021
|
|
|
|
```
|
|
|
|
after connect success,we can execute map operation
|
|
|
|
|
|
|
|
## SetMessageStatus
|
|
|
|
```
|
|
|
|
================= map Menu =================
|
|
|
|
1. Exit
|
|
|
|
2. SetMessageStatus
|
|
|
|
3. SendMessage
|
|
|
|
4. Download
|
|
|
|
5. AbortDownload
|
|
|
|
============================================
|
|
|
|
input num: 2
|
|
|
|
```
|
|
|
|
|
|
|
|
## SendMessage
|
|
|
|
```
|
|
|
|
================= map Menu =================
|
|
|
|
1. Exit
|
|
|
|
2. SetMessageStatus
|
|
|
|
3. SendMessage
|
|
|
|
4. Download
|
|
|
|
5. AbortDownload
|
|
|
|
============================================
|
|
|
|
input num: 3
|
|
|
|
```
|
|
|
|
|
|
|
|
## Download
|
|
|
|
```
|
|
|
|
================= map Menu =================
|
|
|
|
1. Exit
|
|
|
|
2. SetMessageStatus
|
|
|
|
3. SendMessage
|
|
|
|
4. Download
|
|
|
|
5. AbortDownload
|
|
|
|
============================================
|
|
|
|
input num: 4
|
|
|
|
```
|
|
|
|
If the SMS is downloaded successfully, the log will print the returned information,for example
|
|
|
|
```
|
|
|
|
AnWBTService_MsgCallback(38)
|
|
|
|
AnWBTSERVICE_MAP_SMS_DATA: sender_name[] sender_telephone_num[10010] datetime[20210812T151753] message[【中国联通】点击: https://cc.10010.com/i/q9bAw 即刻获取当前话费及流量,自助服务更便捷。] message_status_type[0] message_subject[-1261446707] store_type[83] utc_offset[-1261446605]
|
|
|
|
```
|
|
|
|
|
|
|
|
## AbortDownload
|
|
|
|
```
|
|
|
|
================= map Menu =================
|
|
|
|
1. Exit
|
|
|
|
2. SetMessageStatus
|
|
|
|
3. SendMessage
|
|
|
|
4. Download
|
|
|
|
5. AbortDownload
|
|
|
|
============================================
|
|
|
|
input num: 5
|
|
|
|
```
|
|
|
|
If the short message download is interrupted successfully, the map will disconnect and the log will print the callbck information,for example
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
# AVRCP Menu
|
|
|
|
## Connect avrcp&a2dp
|
|
|
|
we can input profile_mask:0x00000004 to Connect AVRCP&A2DP
|
|
|
|
```
|
|
|
|
================ common Menu ==================
|
|
|
|
1.Exit
|
|
|
|
2.StartInquiry
|
|
|
|
...
|
|
|
|
8.ConnectDevice
|
|
|
|
9.DisconnectDevice
|
|
|
|
10.SPP_Write
|
|
|
|
11.SetScanMode
|
|
|
|
12.GetScanMode
|
|
|
|
...
|
|
|
|
===============================================
|
|
|
|
> input num: 8
|
|
|
|
...
|
|
|
|
> input connect addr(xx:xx:xx:xx:xx:xx): 11:e8:14:da:61:d4 (for example)
|
|
|
|
>input profile_mask: 0x00000004
|
|
|
|
```
|
|
|
|
if connect success ,we can get the log of callback,for example
|
|
|
|
```
|
|
|
|
AnWBTService_MsgCallback(7)
|
|
|
|
AnWBTSERVICE_DEV_PROFILE_STATE_CHANGED profile_mask[4] devclass[7995916] isConnected[1]
|
|
|
|
```
|
|
|
|
after connect success,you need to turn on the music player.then we can execute AVRCP api
|
|
|
|
|
|
|
|
## Music Control
|
|
|
|
for example,Host control play music,controlid input 0 to play music(0: CTRL_PLAY_PRESS).
|
|
|
|
```
|
|
|
|
================== avrcp Menu =================
|
|
|
|
1. Exit
|
|
|
|
2. AVRCP_Control
|
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
|
9. AVRCP_SetCtAbsoluteVolume
|
|
|
|
===============================================
|
|
|
|
input num:2
|
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
|
|
|
input controlid:0
|
|
|
|
```
|
|
|
|
The mobile music player will play music and the log will print the callback information.
|
|
|
|
```
|
|
|
|
AnWBTSERVICE_AVRCP_MEDIA_INFO_CHANGED: albumName[解药 (新版)] artistName[来一碗老于] mediaTitle[解药 (新版)] playingTimeMs[51836] SongLengthTimeMs[212000]
|
|
|
|
AnWBTSERVICE_AVRCP_MEDIA_INFO_CHANGED: sizeAlbumName[15] sizeArtistName[15] sizeMediaTitle[15] sizePlayingTimeMs[5] sizeSongLengthTimeMs[6]
|
|
|
|
|
|
|
|
```
|
|
|
|
## Set Player Application Setting
|
|
|
|
```
|
|
|
|
================== avrcp Menu =================
|
|
|
|
1. Exit
|
|
|
|
2. AVRCP_Control
|
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
|
9. AVRCP_SetCtAbsoluteVolume
|
|
|
|
===============================================
|
|
|
|
input num:3
|
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
|
|
|
input attributeId:0X02
|
|
|
|
input attributeValue:0X02
|
|
|
|
```
|
|
|
|
log will print callback of setting that you set
|
|
|
|
## Get Player Application Setting
|
|
|
|
```
|
|
|
|
================== avrcp Menu =================
|
|
|
|
1. Exit
|
|
|
|
2. AVRCP_Control
|
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
|
9. AVRCP_SetCtAbsoluteVolume
|
|
|
|
===============================================
|
|
|
|
input num:4
|
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
|
|
|
```
|
|
|
|
log will print callback of setting
|
|
|
|
```
|
|
|
|
AnWBTService_MsgCallback(44)
|
|
|
|
AnWBTSERVICE_AVRCP_CURRENT_REPEAT_SHUFFLE currentRepeatMode[0] currentShuffleMode[0]
|
|
|
|
```
|
|
|
|
## Set Ct Absolute Volume
|
|
|
|
```
|
|
|
|
================== avrcp Menu =================
|
|
|
|
1. Exit
|
|
|
|
2. AVRCP_Control
|
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
|
9. AVRCP_SetCtAbsoluteVolume
|
|
|
|
===============================================
|
|
|
|
input num:9
|
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
|
|
|
```
|
|
|
|
# A2DP Menu
|
|
|
|
## Connect avrcp&a2dp
|
|
|
|
we can input profile_mask:0x00000004 to Connect AVRCP&A2DP
|
|
|
|
```
|
|
|
|
================ common Menu ==================
|
|
|
|
1.Exit
|
|
|
|
2.StartInquiry
|
|
|
|
...
|
|
|
|
8.ConnectDevice
|
|
|
|
9.DisconnectDevice
|
|
|
|
10.SPP_Write
|
|
|
|
11.SetScanMode
|
|
|
|
12.GetScanMode
|
|
|
|
...
|
|
|
|
===============================================
|
|
|
|
> input num: 8
|
|
|
|
...
|
|
|
|
> input connect addr(xx:xx:xx:xx:xx:xx): 11:e8:14:da:61:d4 (for example)
|
|
|
|
>input profile_mask: 0x00000004
|
|
|
|
```
|
|
|
|
if connect success ,we can get the log of callback,for example
|
|
|
|
```
|
|
|
|
AnWBTService_MsgCallback(7)
|
|
|
|
AnWBTSERVICE_DEV_PROFILE_STATE_CHANGED profile_mask[4] devclass[7995916] isConnected[1]
|
|
|
|
```
|
|
|
|
after connect success,you need to turn on the music player.then we can execute A2DP api
|
|
|
|
|
|
|
|
## A2DP Mute or Unmute
|
|
|
|
```
|
|
|
|
================== a2dp Menu ==================
|
|
|
|
1. Exit
|
|
|
|
2. A2DP_WAVEOUT_Mute
|
|
|
|
3. A2DP_WAVEOUT_Volume
|
|
|
|
4. AnWBTSRV_Music_Mode_Select
|
|
|
|
5. A2DP_WAVEOUT_VolumeUp
|
|
|
|
6. A2DP_WAVEOUT_VolumeDown
|
|
|
|
===============================================
|
|
|
|
input num: 2
|
|
|
|
input mode(mute or unmute):1
|
|
|
|
```
|
|
|
|
If the setting is successful, you can receive a callback in log,for example
|
|
|
|
```
|
|
|
|
musicPlay[1] bt_status_manager.Bluetooth_Element_A2DP_Mute[-1261474894]
|
|
|
|
AnWBTService_MsgCallback(41)
|
|
|
|
AnWBTSERVICE_A2DP_MUTE: mute[1]
|
|
|
|
```
|
|
|
|
|
|
|
|
## A2DP Set Volume
|
|
|
|
```
|
|
|
|
================== a2dp Menu ==================
|
|
|
|
1. Exit
|
|
|
|
2. A2DP_WAVEOUT_Mute
|
|
|
|
3. A2DP_WAVEOUT_Volume
|
|
|
|
4. AnWBTSRV_Music_Mode_Select
|
|
|
|
5. A2DP_WAVEOUT_VolumeUp
|
|
|
|
6. A2DP_WAVEOUT_VolumeDown
|
|
|
|
===============================================
|
|
|
|
input num: 3
|
|
|
|
input volume:2
|
|
|
|
```
|
|
|
|
you can receive a callback of music mode in log ,for example
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
## Select Music Mode
|
|
|
|
```
|
|
|
|
================== a2dp Menu ==================
|
|
|
|
1. Exit
|
|
|
|
2. A2DP_WAVEOUT_Mute
|
|
|
|
3. A2DP_WAVEOUT_Volume
|
|
|
|
4. AnWBTSRV_Music_Mode_Select
|
|
|
|
5. A2DP_WAVEOUT_VolumeUp
|
|
|
|
6. A2DP_WAVEOUT_VolumeDown
|
|
|
|
===============================================
|
|
|
|
input num: 4
|
|
|
|
input mode:3
|
|
|
|
```
|
|
|
|
you can receive a callback of music mode in log ,for example
|
|
|
|
```
|
|
|
|
AnWBTService_MsgCallback(52)
|
|
|
|
AnWBTSERVICE_MUSIC_MODE: musicMode[3]
|
|
|
|
```
|
|
|
|
## A2DP Volume Up
|
|
|
|
```
|
|
|
|
================== a2dp Menu ==================
|
|
|
|
1. Exit
|
|
|
|
2. A2DP_WAVEOUT_Mute
|
|
|
|
3. A2DP_WAVEOUT_Volume
|
|
|
|
4. AnWBTSRV_Music_Mode_Select
|
|
|
|
5. A2DP_WAVEOUT_VolumeUp
|
|
|
|
6. A2DP_WAVEOUT_VolumeDown
|
|
|
|
===============================================
|
|
|
|
input num: 5
|
|
|
|
```
|
|
|
|
|
|
|
|
## A2DP Volume Down
|
|
|
|
```
|
|
|
|
================== a2dp Menu ==================
|
|
|
|
1. Exit
|
|
|
|
2. A2DP_WAVEOUT_Mute
|
|
|
|
3. A2DP_WAVEOUT_Volume
|
|
|
|
4. AnWBTSRV_Music_Mode_Select
|
|
|
|
5. A2DP_WAVEOUT_VolumeUp
|
|
|
|
6. A2DP_WAVEOUT_VolumeDown
|
|
|
|
===============================================
|
|
|
|
input num: 6
|
|
|
|
```
|
|
|
|
|
|
<div style="page-break-after: always;"></div> |
|
<div style="page-break-after: always;"></div> |
|
|
|
\ No newline at end of file |