20706-A2 Classic BT SPP example issue

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
VinayDand
Level 3
Level 3
10 replies posted 10 questions asked 5 replies posted

Hello,

We are learning BT classic BT connectivity by following WBT101 from Cypress Github (It's work in progress)
Specifically referring to chapter 6 A, with Classic BT SPP connectivity example explained there in.
(Attached lessons lab manual pdf file for reference)

We created a Wiced 20706-A2 project and followed code directives as per the lesson.

On downloading the code to evaluation kit and pairing with a Android device running Serial BT terminal app,

We get pairing OK.
But on trying to transfer data from Serial Terminal App,
We get error on PUART :

Unhandled Bluetooth Management Event: 0x2 (2)

(attaching terminal output screen shot)

We could not make out, why this is generated or what's wrong in the program
(Attaching WiCed project zip file)


Will appreciate help / pointer in resolving the issue.

Best Regards,

Vinay

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Vinay,

Unhandled Bluetooth Management Event: 0x2 (2) is not an error. It corresponds to wiced bt management event 'BTM_POWER_MANAGEMENT_STATUS_EVT'. (Refer wiced_bt_dev.h)

From your description, you have mentioned pairing is ok. Could you please confim, After the pairing, did you connected SPP from the BT serial terminal as mentioned in the chapter 6A? Was the SPP connection successful ? Because I didn't see any logs regarding the SPP connection.

Please click on the connect and see the results.

I would suggest you to test the SPP demo available under 20706 demo first (/20706-A2_Bluetooth/apps/snip/bt/spp) and then try integrating to your project.

Thanks,

Anjana

View solution in original post

3 Replies
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Vinay,

Unhandled Bluetooth Management Event: 0x2 (2) is not an error. It corresponds to wiced bt management event 'BTM_POWER_MANAGEMENT_STATUS_EVT'. (Refer wiced_bt_dev.h)

From your description, you have mentioned pairing is ok. Could you please confim, After the pairing, did you connected SPP from the BT serial terminal as mentioned in the chapter 6A? Was the SPP connection successful ? Because I didn't see any logs regarding the SPP connection.

Please click on the connect and see the results.

I would suggest you to test the SPP demo available under 20706 demo first (/20706-A2_Bluetooth/apps/snip/bt/spp) and then try integrating to your project.

Thanks,

Anjana

Hello,

After pairing with BT serial terminal.

When we send a data,

Bluetooth Management Event: 0x2 (2)

message comes on PUART terminal every time, can not see data on terminal.

Verified all the steps mentioned in Lesson 6A. Still same event message and no data transferred from BT serial to kit.

Will go through bt-spp application code in snip and try to find out why data is not being transferred via SPP.

Best Regards,

Vinay

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Vinay,

After pairing, you should click on connect button first after selecting the device name in BT serial terminal window.

Only if you get a success for that SPP connection, then you can transmit data.

serial.PNG

Thanks,
Anjana