cancel
Showing results for 
Search instead for 
Did you mean: 

ModusToolbox Bluetooth SDK

TaC_4722371
New Contributor II

Hi,

I am trying to make a custom project by referring the sample WATCH project provided as an example in ModusToolbox. I am doing this by extracting only the AVDT, AVRCP CT & TG APIs and neglecting all HCI related code. when I try to connect with peer with API wiced_bt_avdt_connect_req(), I am getting AVDT_DISCONNECT_IND_EVT in the callback. And also I am getting the Bluetooth management callback event BTM_SECURITY_FAILED_EVT sometimes. I have set like this av_app_cb.avdt_register.sec_mask = BTM_SEC_NONE; Please let me know if there's any potential cause for AVDT_DISCONNECT_IND_EVT and BTM_SECURITY_FAILED_EVT to happen.

Regards,

Tamilarasan C.

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator

You can test the demo and open the BTSpy log to compare with your own application.

View solution in original post

3 Replies
Owen_Zhang123
Moderator
Moderator

Do you want to create a A2DP connection? Please refer to the function a2dp_app_hci_control_connect.

0 Likes
TaC_4722371
New Contributor II

Thank you, for your reply. I am using that function, but I am getting AVDT_DISCONNECT_IND_EVT in the callback i.e. av_app_connect_request_cback.

0 Likes
Owen_Zhang123
Moderator
Moderator

You can test the demo and open the BTSpy log to compare with your own application.

View solution in original post