... | ... | @@ -283,7 +283,12 @@ AnWBTSERVICE_GET_LOCAL_OOB_DATA status[0] hash_c192... |
|
|
> input num:11
|
|
|
> input setPairingState:3
|
|
|
```
|
|
|
After execution, the log print the pairing state "setPairingState:state[5]"
|
|
|
After execution, the log print the pairing state "setPairingState:state[5]"
|
|
|
Description of setPairingState
|
|
|
0-discoverable (Inquiry Scan from Remote Devices)
|
|
|
1-connectable (Page Scan from Remote Devices)
|
|
|
2-limited discoverable
|
|
|
Numbers can be used with sum values
|
|
|
## get scan mode
|
|
|
```
|
|
|
================ common Menu ==================
|
... | ... | @@ -446,6 +451,12 @@ AnWBTService_HFPCallChanged_S devclass[7995916] call1_number[10010] call1_state[ |
|
|
AnWBTService_MsgCallback(16)
|
|
|
AnWBTService_HFPClccInfoChanged_S number[10010] name[ 10010 ] dir[0] status[0]
|
|
|
```
|
|
|
Description of typeofcall:
|
|
|
0-OrdinaryPhoneCall
|
|
|
1-RedialLastOutgoingCall
|
|
|
2-VoiceDial //Start Voice Dial
|
|
|
3-VoiceDialEnd //Terminate Voice Dial
|
|
|
|
|
|
## accept all
|
|
|
```
|
|
|
================== HFP Menu ===================
|
... | ... | @@ -702,9 +713,22 @@ The mobile music player will play music and the log will print the callback info |
|
|
```
|
|
|
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
|
|
|
Description of controlid:
|
|
|
0: PLAY
|
|
|
2: PAUSE
|
|
|
4: STOP
|
|
|
6: MUTE
|
|
|
8: FORWARD
|
|
|
10:BACKWARD
|
|
|
12:NEXT SONG
|
|
|
13:PREVIOUS SONG
|
|
|
14:FFWD(FFWD: Fast Forward)
|
|
|
15:FFWD AUTO
|
|
|
17:RWND PRESS(RWND: Rewind)
|
|
|
19:NEXT GROUP(Not supported in iPhone5(8.1.1))
|
|
|
21:PREVIOUS GROUP(Not supported in iPhone5(8.1.1))
|
|
|
## set player application setting
|
|
|
```
|
|
|
================== avrcp Menu =================
|
|
|
...
|
... | ... | @@ -717,6 +741,34 @@ input attributeId:0X02 |
|
|
input attributeValue:0X02
|
|
|
```
|
|
|
log will print callback of setting that you set
|
|
|
|
|
|
Description of attributeId:
|
|
|
0X01: PLAYER APPLICATION EQUALIZER
|
|
|
0X02: PLAYER APPLICATION REPEAT
|
|
|
0X03: PLAYER APPLICATION SHUFFLE
|
|
|
0X04: PLAYER APPLICATION SCAN
|
|
|
|
|
|
Description of Attribute value:
|
|
|
PLAYER APPLICATION EQUALIZER:
|
|
|
0X01: PLAYER APPLICATION EQUALIZER OFF
|
|
|
0X02: PLAYER APPLICATION EQUALIZER ON
|
|
|
|
|
|
PLAYER APPLICATION REPEAT:
|
|
|
0X01: PLAYER APPLICATION REPEAT OFF
|
|
|
0X02: PLAYER APPLICATION REPEAT SINGLE
|
|
|
0X03: PLAYER APPLICATION REPEAT ALL
|
|
|
0X04: PLAYER APPLICATION REPEAT GROUP
|
|
|
|
|
|
PLAYER APPLICATION SHUFFLE:
|
|
|
0X01: PLAYER APPLICATION SHUFFLE OFF
|
|
|
0X02: PLAYER APPLICATION SHUFFLE ALL
|
|
|
0X03: PLAYER APPLICATION SHUFFLE GROUP
|
|
|
|
|
|
PLAYER APPLICATION SCAN:
|
|
|
0X01: PLAYER APPLICATION SCAN OFF
|
|
|
0X02: PLAYER APPLICATION SCAN ALL
|
|
|
0X03: PLAYER APPLICATION SCAN GROUP
|
|
|
|
|
|
## get player application setting
|
|
|
```
|
|
|
================== avrcp Menu =================
|
... | ... | @@ -771,8 +823,22 @@ input index:0 |
|
|
```
|
|
|
you can get the callback message form log,for example
|
|
|
```
|
|
|
AnWBTService_MsgCallback(63)
|
|
|
AnWBTSERVICE_MAP_STATE_CHANGED: state[117]
|
|
|
AnWBTService_MsgCallback(64)
|
|
|
AnWBTSERVICE_AVRCP_BR_CHANGEPATH: result[0] totalItemsNumber[5]
|
|
|
addr:[11:e8:14:da:61:d4]
|
|
|
AnWBTService_MsgCallback(58)
|
|
|
AnWBTSERVICE_AVRCP_BR_FILESYSTEM_ITEM_START: numberOfItems[4] uidCounter[0] addr[11:e8:14:da:61:d4]
|
|
|
AnWBTService_MsgCallback(60)
|
|
|
AnWBTSERVICE_AVRCP_BR_FOLDER_ITEM: folderUID[] folderType[3] isPlayable[0]characterSetID[106] nameLen[6] nameString[艺人]
|
|
|
addr:[11:e8:14:da:61:d4]
|
|
|
AnWBTService_MsgCallback(60)
|
|
|
AnWBTSERVICE_AVRCP_BR_FOLDER_ITEM: folderUID[] folderType[2] isPlayable[0]characterSetID[106] nameLen[6] nameString[专辑]
|
|
|
addr:[11:e8:14:da:61:d4]
|
|
|
AnWBTService_MsgCallback(60)
|
|
|
AnWBTSERVICE_AVRCP_BR_FOLDER_ITEM: folderUID[] folderType[1] isPlayable[0]characterSetID[106] nameLen[6] nameString[歌曲]
|
|
|
addr:[11:e8:14:da:61:d4]
|
|
|
AnWBTService_MsgCallback(60)
|
|
|
AnWBTSERVICE_AVRCP_BR_FOLDER_ITEM: folderUID[] folderType[4] isPlayable[0]characterSetID[106] nameLen[6] nameString[类型]
|
|
|
```
|
|
|
## browsing back to previous
|
|
|
```
|
... | ... | @@ -827,8 +893,10 @@ 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]
|
|
|
|
|
|
```
|
|
|
Description of mode:
|
|
|
1-music unmute
|
|
|
0-music mute
|
|
|
|
|
|
## set volume
|
|
|
```
|
... | ... | @@ -859,6 +927,12 @@ you can receive a callback of music mode in log ,for example |
|
|
AnWBTService_MsgCallback(52)
|
|
|
AnWBTSERVICE_MUSIC_MODE: musicMode[3]
|
|
|
```
|
|
|
Description of Mode:
|
|
|
0- not work
|
|
|
1- play car music on headset
|
|
|
2- play phone music on headset
|
|
|
3- play phone music on car
|
|
|
|
|
|
## volume up
|
|
|
```
|
|
|
================== a2dp Menu ==================
|
... | ... | |