... | ... | @@ -33,11 +33,9 @@ udhcpc -i mlan0 |
|
|
## set device name
|
|
|
```
|
|
|
================bluetooth menu=================
|
|
|
1.EXIT
|
|
|
2.BTPowerOn
|
|
|
3.BTPowerOff
|
|
|
...
|
|
|
4.SetLocalDevAddrOrName
|
|
|
5.SetFilePath
|
|
|
...
|
|
|
===============================================
|
|
|
> input num: 4
|
|
|
0.set local name
|
... | ... | @@ -49,11 +47,9 @@ udhcpc -i mlan0 |
|
|
## power on init
|
|
|
```
|
|
|
================bluetooth menu=================
|
|
|
1.EXIT
|
|
|
...
|
|
|
2.BTPowerOn
|
|
|
3.BTPowerOff
|
|
|
4.SetLocalDevAddrOrName
|
|
|
5.SetFilePath
|
|
|
...
|
|
|
===============================================
|
|
|
> input num: 2
|
|
|
BTPowerOn
|
... | ... | @@ -62,11 +58,9 @@ BTPowerOn |
|
|
## power off
|
|
|
```
|
|
|
================bluetooth menu=================
|
|
|
1.EXIT
|
|
|
2.BTPowerOn
|
|
|
...
|
|
|
3.BTPowerOff
|
|
|
4.SetLocalDevAddrOrName
|
|
|
5.SetFilePath
|
|
|
...
|
|
|
===============================================
|
|
|
> input num: 3
|
|
|
BTPowerOff
|
... | ... | @@ -78,10 +72,7 @@ from mobile, then turn on the BT button from mobile again. At this time, mobile |
|
|
## set file path
|
|
|
```
|
|
|
================bluetooth menu=================
|
|
|
1.EXIT
|
|
|
2.BTPowerOn
|
|
|
3.BTPowerOff
|
|
|
4.SetLocalDevAddrOrName
|
|
|
...
|
|
|
5.SetFilePath
|
|
|
===============================================
|
|
|
> input num: 5
|
... | ... | @@ -102,15 +93,8 @@ Note:the Path of input must end with "/" |
|
|
## start inquiry device
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
3.StopInquiry
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
===============================================
|
|
|
input num: 2
|
... | ... | @@ -124,15 +108,8 @@ AnWBTSERVICE_NEW_DEVICE_FOUND name[CSR - bc7] devclass[2098184] |
|
|
## stop inquiry device
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
3.StopInquiry
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
3.StopInquiry
|
|
|
...
|
|
|
===============================================
|
|
|
input num: 3
|
... | ... | @@ -142,16 +119,8 @@ When StartInquiry is running, execute StopInquiry immediately and stop inquiry |
|
|
## pair response
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
3.StopInquiry
|
|
|
4.PairResponse
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
4.PairResponse
|
|
|
...
|
|
|
===============================================
|
|
|
input num: 4
|
... | ... | @@ -161,17 +130,8 @@ input num: 4 |
|
|
## set pin code
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
3.StopInquiry
|
|
|
4.PairResponse
|
|
|
5.SetPinCode
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
5.SetPinCode
|
|
|
...
|
|
|
===============================================
|
|
|
input num: 5
|
... | ... | @@ -180,18 +140,8 @@ input pincode:1111 |
|
|
## set local DevCoD
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
3.StopInquiry
|
|
|
4.PairResponse
|
|
|
5.SetPinCode
|
|
|
6.SetLocalDevCoD
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
6.SetLocalDevCoD
|
|
|
...
|
|
|
===============================================
|
|
|
input num:6
|
... | ... | @@ -200,17 +150,8 @@ input devClass:7995916 |
|
|
## get local OOB data
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
3.StopInquiry
|
|
|
...
|
|
|
6.SetLocalDevCoD
|
|
|
7.GetLocalOOBData
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
...
|
|
|
===============================================
|
|
|
input num:7
|
... | ... | @@ -224,14 +165,8 @@ AnWBTSERVICE_GET_LOCAL_OOB_DATA status[0] hash_c192... |
|
|
## connect device a.k.a. spp connect
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
...
|
|
|
===============================================
|
|
|
> input num: 8
|
... | ... | @@ -246,14 +181,8 @@ Note: Then, connected.Querying the mobile phone shows that the connection is suc |
|
|
## spp write
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
...
|
|
|
===============================================
|
|
|
> input num: 10
|
... | ... | @@ -284,14 +213,8 @@ AnWBTService_SPP_DATA_IND_S sppData: |
|
|
Note: the device had been connected a.k.a. spp connected
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
...
|
|
|
===============================================
|
|
|
> input num: 9
|
... | ... | @@ -306,14 +229,8 @@ AnWBTSERVICE_DEV_PROFILE_STATE_CHANGED profile_mask[10] devclass[7995916] isConn |
|
|
## set scan mode
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:11
|
... | ... | @@ -323,13 +240,7 @@ After execution, the log print the pairing state "setPairingState:state[5]" |
|
|
## get scan mode
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
...
|
|
|
===============================================
|
... | ... | @@ -339,16 +250,9 @@ After execution, you can get the state form log ,for example: PairingState[5] |
|
|
## pair device
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
13.UnPairDevice
|
|
|
14.PairDevice
|
|
|
15.GetAllPairedDeviceInfo
|
|
|
16.GetLocalDevInfo
|
|
|
17.GetBTPowerStatus
|
|
|
18.SendHCICommand
|
|
|
19.DeviceIsConnected
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:14
|
|
|
> input pair addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
... | ... | @@ -363,16 +267,9 @@ Note:Querying the mobile phone shows paired record |
|
|
## unpair device
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
13.UnPairDevice
|
|
|
14.PairDevice
|
|
|
15.GetAllPairedDeviceInfo
|
|
|
16.GetLocalDevInfo
|
|
|
17.GetBTPowerStatus
|
|
|
18.SendHCICommand
|
|
|
19.DeviceIsConnected
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:13
|
|
|
> input unpair addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
... | ... | @@ -385,16 +282,9 @@ AnWBTService_UnpairDevice_S type[1] status[0] |
|
|
## get all paired device Info
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
13.UnPairDevice
|
|
|
14.PairDevice
|
|
|
15.GetAllPairedDeviceInfo
|
|
|
16.GetLocalDevInfo
|
|
|
17.GetBTPowerStatus
|
|
|
18.SendHCICommand
|
|
|
19.DeviceIsConnected
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:15
|
|
|
```
|
... | ... | @@ -405,16 +295,9 @@ PairedDevInfo:btaddr[11:e8:14:da:61:d4] linkKey[w쳇[:µb7] devClass[7995916 |
|
|
## get local device Info
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
13.UnPairDevice
|
|
|
14.PairDevice
|
|
|
15.GetAllPairedDeviceInfo
|
|
|
16.GetLocalDevInfo
|
|
|
17.GetBTPowerStatus
|
|
|
18.SendHCICommand
|
|
|
19.DeviceIsConnected
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:16
|
|
|
```
|
... | ... | @@ -425,16 +308,9 @@ LocalDevInfo:btaddr[a5:a5:0:5b:2:0] devClass[2098184] nameLen[6] Name[ANWBT] ser |
|
|
##get BT power status
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
13.UnPairDevice
|
|
|
14.PairDevice
|
|
|
15.GetAllPairedDeviceInfo
|
|
|
16.GetLocalDevInfo
|
|
|
17.GetBTPowerStatus
|
|
|
18.SendHCICommand
|
|
|
19.DeviceIsConnected
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:17
|
|
|
```
|
... | ... | @@ -442,16 +318,9 @@ then the log print the power status of BT, like "power_status[0]" |
|
|
## send HCI command
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
13.UnPairDevice
|
|
|
14.PairDevice
|
|
|
15.GetAllPairedDeviceInfo
|
|
|
16.GetLocalDevInfo
|
|
|
17.GetBTPowerStatus
|
|
|
18.SendHCICommand
|
|
|
19.DeviceIsConnected
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:18
|
|
|
> input OpCode Group:
|
... | ... | @@ -461,15 +330,7 @@ then the log print the power status of BT, like "power_status[0]" |
|
|
## check device is connected
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
13.UnPairDevice
|
|
|
14.PairDevice
|
|
|
15.GetAllPairedDeviceInfo
|
|
|
16.GetLocalDevInfo
|
|
|
17.GetBTPowerStatus
|
|
|
18.SendHCICommand
|
|
|
19.DeviceIsConnected
|
|
|
===============================================
|
|
|
> input num:19
|
... | ... | @@ -483,12 +344,9 @@ connect_status[1](0-not connected 1-connected) |
|
|
## outgoing call
|
|
|
```
|
|
|
================== HFP Menu ===================
|
|
|
1.Exit
|
|
|
...
|
|
|
2.OutgoingCall
|
|
|
3.AcceptCall
|
|
|
4.Hangup
|
|
|
5.GetAudioState
|
|
|
6.GetCallStatusList
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:2
|
|
|
> input typeofcall:0 (0/1/2/3)
|
... | ... | @@ -505,12 +363,9 @@ AnWBTService_HFPClccInfoChanged_S number[10010] name[ 10010 ] dir[0] status[0] |
|
|
## accept all
|
|
|
```
|
|
|
================== HFP Menu ===================
|
|
|
1.Exit
|
|
|
2.OutgoingCall
|
|
|
...
|
|
|
3.AcceptCall
|
|
|
4.Hangup
|
|
|
5.GetAudioState
|
|
|
6.GetCallStatusList
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:3
|
|
|
> input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
... | ... | @@ -518,12 +373,9 @@ AnWBTService_HFPClccInfoChanged_S number[10010] name[ 10010 ] dir[0] status[0] |
|
|
## hang up
|
|
|
```
|
|
|
================== HFP Menu ===================
|
|
|
1.Exit
|
|
|
2.OutgoingCall
|
|
|
3.AcceptCall
|
|
|
...
|
|
|
4.Hangup
|
|
|
5.GetAudioState
|
|
|
6.GetCallStatusList
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:4
|
|
|
> input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
... | ... | @@ -544,12 +396,9 @@ AnWBTService_HFPFeatureValueChanged_S rdName[123asd] devclass[7995916] HFP_Featu |
|
|
## get audio state
|
|
|
```
|
|
|
================== HFP Menu ===================
|
|
|
1.Exit
|
|
|
2.OutgoingCall
|
|
|
3.AcceptCall
|
|
|
4.Hangup
|
|
|
...
|
|
|
5.GetAudioState
|
|
|
6.GetCallStatusList
|
|
|
...
|
|
|
===============================================
|
|
|
> input num:5
|
|
|
> input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
... | ... | @@ -558,11 +407,7 @@ then the log print the audio state ,for example "audio state[0]" |
|
|
## get call status list
|
|
|
```
|
|
|
================== HFP Menu ===================
|
|
|
1.Exit
|
|
|
2.OutgoingCall
|
|
|
3.AcceptCall
|
|
|
4.Hangup
|
|
|
5.GetAudioState
|
|
|
...
|
|
|
6.GetCallStatusList
|
|
|
===============================================
|
|
|
> input num:6
|
... | ... | @@ -578,14 +423,8 @@ Note: To execute this API, pbap and HFP must be connected successfully. |
|
|
so we can input profile_mask:0x00000011
|
|
|
```
|
|
|
================ common Menu ==================
|
|
|
1.Exit
|
|
|
2.StartInquiry
|
|
|
...
|
|
|
8.ConnectDevice
|
|
|
9.DisconnectDevice
|
|
|
10.SPP_Write
|
|
|
11.SetScanMode
|
|
|
12.GetScanMode
|
|
|
...
|
|
|
===============================================
|
|
|
> input num: 8
|
... | ... | @@ -597,12 +436,9 @@ Note: You can find mobile BT mac from "Setting->General->About-> Bluetooth" (iph |
|
|
**start sync pabap**
|
|
|
```
|
|
|
================== pbap Menu ==================
|
|
|
1.Exit
|
|
|
...
|
|
|
2.SYNCSTART
|
|
|
3.SYNCCANCEL
|
|
|
4.AnWBTSRV_PBAP_GetContactBaseOnContactID
|
|
|
5.AnWBTSRV_PBAP_GetCalllogBaseOnCallID
|
|
|
6.AnWBTSRV_PBAP_GetNumbersBaseOnContactID
|
|
|
...
|
|
|
===============================================
|
|
|
>input num:2
|
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
... | ... | @@ -623,12 +459,9 @@ AnWBTService_PBAP_CALLLOG_DATA_S callID[123] callTYPE[2] fnLen[0] fn[] number[05 |
|
|
## sync cancal
|
|
|
```
|
|
|
================== pbap Menu ==================
|
|
|
1.Exit
|
|
|
2.SYNCSTART
|
|
|
...
|
|
|
3.SYNCCANCEL
|
|
|
4.AnWBTSRV_PBAP_GetContactBaseOnContactID
|
|
|
5.AnWBTSRV_PBAP_GetCalllogBaseOnCallID
|
|
|
6.AnWBTSRV_PBAP_GetNumbersBaseOnContactID
|
|
|
...
|
|
|
===============================================
|
|
|
>input num:2
|
|
|
>input target addr(xx:xx:xx:xx:xx:xx):11:e8:14:da:61:d4
|
... | ... | @@ -638,12 +471,9 @@ 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
|
... | ... | @@ -656,12 +486,9 @@ AnWBTService_PBAP_CONTACT_DATA_S contactID[4] contactTYPE[1] fnLen[12] fn[大头 |
|
|
## 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
|
... | ... | @@ -674,11 +501,7 @@ AnWBTService_PBAP_CALLLOG_DATA_S callID[4] callTYPE[1] fnLen[9] fn[李] number[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
|
... | ... | @@ -697,71 +520,56 @@ telephoneData:xuhao[3] rdName[SniperKaka] contactID[4] telephoneNumID[6] telepho |
|
|
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
|
|
|
>input profile_mask: 0x00000020
|
|
|
```
|
|
|
after connect success,we can execute map operation
|
|
|
|
|
|
## SetMessageStatus
|
|
|
## set message status
|
|
|
```
|
|
|
================= map Menu =================
|
|
|
1. Exit
|
|
|
...
|
|
|
2. SetMessageStatus
|
|
|
3. SendMessage
|
|
|
4. Download
|
|
|
5. AbortDownload
|
|
|
...
|
|
|
============================================
|
|
|
input num: 2
|
|
|
```
|
|
|
|
|
|
## SendMessage
|
|
|
## send message
|
|
|
```
|
|
|
================= map Menu =================
|
|
|
1. Exit
|
|
|
2. SetMessageStatus
|
|
|
...
|
|
|
3. SendMessage
|
|
|
4. Download
|
|
|
5. AbortDownload
|
|
|
...
|
|
|
============================================
|
|
|
input num: 3
|
|
|
```
|
|
|
|
|
|
## Download
|
|
|
## download message
|
|
|
```
|
|
|
================= 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]
|
|
|
AnWBTSERVICE_MAP_SMS_DATA: sender_name[] sender_telephone_num[10010] datetime[20210812T151753] message[I am Examples...] message_status_type[0] message_subject[-1261446707] store_type[83] utc_offset[-1261446605]
|
|
|
```
|
|
|
|
|
|
## AbortDownload
|
|
|
## abort download
|
|
|
```
|
|
|
================= map Menu =================
|
|
|
1. Exit
|
|
|
2. SetMessageStatus
|
|
|
3. SendMessage
|
|
|
4. Download
|
|
|
...
|
|
|
5. AbortDownload
|
|
|
============================================
|
|
|
input num: 5
|
... | ... | @@ -772,18 +580,12 @@ If the short message download is interrupted successfully, the map will disconne |
|
|
```
|
|
|
|
|
|
# AVRCP Menu
|
|
|
## Connect avrcp&a2dp
|
|
|
## 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
|
... | ... | @@ -798,18 +600,13 @@ AnWBTSERVICE_DEV_PROFILE_STATE_CHANGED profile_mask[4] devclass[7995916] isConne |
|
|
```
|
|
|
after connect success,you need to turn on the music player.then we can execute AVRCP api
|
|
|
|
|
|
## Music Control
|
|
|
## 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
|
|
|
5. AVRCP_SetCtAbsoluteVolume
|
|
|
6.AnWBTSRV_AVRCP_BR_Refresh
|
|
|
7.AnWBTSRV_AVRCP_BR_Enter
|
|
|
8.AnWBTSRV_AVRCP_BR_Back
|
|
|
...
|
|
|
===============================================
|
|
|
input num:2
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
... | ... | @@ -821,17 +618,12 @@ AnWBTSERVICE_AVRCP_MEDIA_INFO_CHANGED: albumName[解药 (新版)] artistName[来 |
|
|
AnWBTSERVICE_AVRCP_MEDIA_INFO_CHANGED: sizeAlbumName[15] sizeArtistName[15] sizeMediaTitle[15] sizePlayingTimeMs[5] sizeSongLengthTimeMs[6]
|
|
|
|
|
|
```
|
|
|
## Set Player Application Setting
|
|
|
## set player application setting
|
|
|
```
|
|
|
================== avrcp Menu =================
|
|
|
1. Exit
|
|
|
2. AVRCP_Control
|
|
|
...
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
5. AVRCP_SetCtAbsoluteVolume
|
|
|
6. AnWBTSRV_AVRCP_BR_Refresh
|
|
|
7. AnWBTSRV_AVRCP_BR_Enter
|
|
|
8. AnWBTSRV_AVRCP_BR_Back
|
|
|
...
|
|
|
===============================================
|
|
|
input num:3
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
... | ... | @@ -839,17 +631,12 @@ input attributeId:0X02 |
|
|
input attributeValue:0X02
|
|
|
```
|
|
|
log will print callback of setting that you set
|
|
|
## Get Player Application Setting
|
|
|
## get player application setting
|
|
|
```
|
|
|
================== avrcp Menu =================
|
|
|
1. Exit
|
|
|
2. AVRCP_Control
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
...
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
5. AVRCP_SetCtAbsoluteVolume
|
|
|
6. AnWBTSRV_AVRCP_BR_Refresh
|
|
|
7. AnWBTSRV_AVRCP_BR_Enter
|
|
|
8. AnWBTSRV_AVRCP_BR_Back
|
|
|
...
|
|
|
===============================================
|
|
|
input num:4
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
... | ... | @@ -860,32 +647,22 @@ AnWBTService_MsgCallback(44) |
|
|
AnWBTSERVICE_AVRCP_CURRENT_REPEAT_SHUFFLE currentRepeatMode[0] currentShuffleMode[0]
|
|
|
```
|
|
|
|
|
|
## Set Ct Absolute Volume
|
|
|
## set absolute volume
|
|
|
```
|
|
|
================== avrcp Menu =================
|
|
|
1. Exit
|
|
|
2. AVRCP_Control
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
...
|
|
|
5. AVRCP_SetCtAbsoluteVolume
|
|
|
6. AnWBTSRV_AVRCP_BR_Refresh
|
|
|
7. AnWBTSRV_AVRCP_BR_Enter
|
|
|
8. AnWBTSRV_AVRCP_BR_Back
|
|
|
...
|
|
|
===============================================
|
|
|
input num:5
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
|
|
```
|
|
|
## BR Refresh
|
|
|
## browsing data refresh
|
|
|
```
|
|
|
================== avrcp Menu =================
|
|
|
1. Exit
|
|
|
2. AVRCP_Control
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
5. AVRCP_SetCtAbsoluteVolume
|
|
|
...
|
|
|
6. AnWBTSRV_AVRCP_BR_Refresh
|
|
|
7. AnWBTSRV_AVRCP_BR_Enter
|
|
|
8. AnWBTSRV_AVRCP_BR_Back
|
|
|
...
|
|
|
===============================================
|
|
|
input num:6
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
... | ... | @@ -895,17 +672,12 @@ you can get the callback message form log,for example |
|
|
AnWBTService_MsgCallback(57)
|
|
|
AnWBTSERVICE_AVRCP_BR_GET_PLAYERLIST: status[12]
|
|
|
```
|
|
|
## BR Enter
|
|
|
## browsing enter
|
|
|
```
|
|
|
================== avrcp Menu =================
|
|
|
1. Exit
|
|
|
2. AVRCP_Control
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
5. AVRCP_SetCtAbsoluteVolume
|
|
|
6. AnWBTSRV_AVRCP_BR_Refresh
|
|
|
...
|
|
|
7. AnWBTSRV_AVRCP_BR_Enter
|
|
|
8. AnWBTSRV_AVRCP_BR_Back
|
|
|
...
|
|
|
===============================================
|
|
|
input num:7
|
|
|
input target addr(xx:xx:xx:xx:xx:xx):d4:61:da:14:e8:11
|
... | ... | @@ -916,16 +688,10 @@ you can get the callback message form log,for example |
|
|
AnWBTService_MsgCallback(63)
|
|
|
AnWBTSERVICE_MAP_STATE_CHANGED: state[117]
|
|
|
```
|
|
|
## BR Back
|
|
|
## browsing back to previous
|
|
|
```
|
|
|
================== avrcp Menu =================
|
|
|
1. Exit
|
|
|
2. AVRCP_Control
|
|
|
3. AVRCP_SetPlayerApplicationSetting
|
|
|
4. AVRCP_GetPlayerApplicationSetting
|
|
|
5. AVRCP_SetCtAbsoluteVolume
|
|
|
6. AnWBTSRV_AVRCP_BR_Refresh
|
|
|
7. AnWBTSRV_AVRCP_BR_Enter
|
|
|
...
|
|
|
8. AnWBTSRV_AVRCP_BR_Back
|
|
|
===============================================
|
|
|
input num:8
|
... | ... | @@ -940,18 +706,12 @@ AnWBTSERVICE_AVRCP_BR_GET_PLAYERLIST: status[0] |
|
|
|
|
|
```
|
|
|
# A2DP Menu
|
|
|
## Connect avrcp&a2dp
|
|
|
## 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
|
... | ... | @@ -966,15 +726,12 @@ AnWBTSERVICE_DEV_PROFILE_STATE_CHANGED profile_mask[4] devclass[7995916] isConne |
|
|
```
|
|
|
after connect success,you need to turn on the music player.then we can execute A2DP api
|
|
|
|
|
|
## A2DP Mute or Unmute
|
|
|
## (un)mute
|
|
|
```
|
|
|
================== 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
|
... | ... | @@ -986,15 +743,12 @@ AnWBTService_MsgCallback(41) |
|
|
AnWBTSERVICE_A2DP_MUTE: mute[1]
|
|
|
```
|
|
|
|
|
|
## A2DP Set Volume
|
|
|
## 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
|
... | ... | @@ -1003,15 +757,12 @@ you can receive a callback of music mode in log ,for example |
|
|
```
|
|
|
|
|
|
```
|
|
|
## Select Music Mode
|
|
|
## 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
|
... | ... | @@ -1021,27 +772,20 @@ you can receive a callback of music mode in log ,for example |
|
|
AnWBTService_MsgCallback(52)
|
|
|
AnWBTSERVICE_MUSIC_MODE: musicMode[3]
|
|
|
```
|
|
|
## A2DP Volume Up
|
|
|
## 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
|
|
|
## 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
|
... | ... | |