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

cross mob
wenchilo
Level 4
Level 4
First like received 25 replies posted 25 sign-ins

Hi I am using CYBT-343026

And I want to connect to cellphone by calling  wiced_bt_spp_connect(), but it doesn't work and seems thak the evaluation board will crash and reset.

Is there anything I need to do before calling wiced_bt_spp_connect()?

0 Likes
1 Solution

You can configure the BD ADDR in the makefile like follows:

BT_DEVICE_ADDRESS?=123456456123#default

View solution in original post

0 Likes
8 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Do you open the spp port on the phone with an app first?

0 Likes
wenchilo
Level 4
Level 4
First like received 25 replies posted 25 sign-ins

I am not sure what iOS means here or if I should make rfcomm connection first WeChat 圖片_20211229095529.png

0 Likes

Yes I have open a spp app on my phone first

0 Likes

What's the peer device? Android or IOS? The IOS device doesn't support the SPP profile.

0 Likes

It's an android cellphone

0 Likes

The API doesn't need a RFCOMM connect first. Per my test before, it may be caused by the peer app. Some app may fail to create the connection. 

You can try to create a connection between two modules.  Or you can also try other spp app on your phone.

0 Likes

I'm trying to connect two modules, how can I change their bd_addr?

0 Likes

You can configure the BD ADDR in the makefile like follows:

BT_DEVICE_ADDRESS?=123456456123#default

0 Likes