Failure mode where advertisements will not stop?

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

cross mob
Anonymous
Not applicable

Hi,

After terminating a connection and restarting advertisements my 20737TAG will frequently enter into a failure mode where advertisements cannot be stopped. When the device is in that mode, the following commands will fail to stop advertisements:

blecm_setAdvEnable(0)

nor

bleprofile_Discoverable(NO_DISCOVERABLE, NULL)

I am sending these commands via my interactive debug console through the UART.

When that happens, I am also unable to change the advertisement data.

Other than this the device is functional, so I don't think this is a crash, at least not a full system.  Maybe the task that handles beacons dies? Has anyone experienced this?  Any recommendations on how to resolve it?

I am using the following commands to terminate connections:

blecm_disconnect(BT_ERROR_CODE_CONNECTION_TERMINATED_BY_LOCAL_HOST);

blecen_Conn(NO_CONN, NULL, 0);

I've tried several combinations of the above (just one of them, or both in swapped order) and I still observe the same problem.

Cheers,

0 Likes
1 Solution
Anonymous
Not applicable

Have not seen it in a while.

Cheers,

j

View solution in original post

0 Likes
9 Replies
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

Do you have a trace log of this you can post?

0 Likes
Anonymous
Not applicable

Hi arvinds,

Do you have a trace log of this you can post?

Yes, sure.

Below are the logs for the two devices I use to reproduce this problem.  In the initial state both devices advertise, then one connects to the other a couple of times, then they should go back to the initial state.

But what happens is that one of the devices enters this "unstoppable advertising" mode and will not be capable of initiating new connections.

Let me know this gives you any ideas on what might be wrong.

Cheers,

Device1 "the unstoppable":

Broadcom Debug Port: BLEAPP CFA debug

myapp_create()

UART initialization complete!

@$*#04FFF6F70092011E0300C1E804D30000008003BA1A002800008003BE1A000000008003AE1A620000008003B21A020000008003B61A050005008003BA1A032800008003BE1A000000008003AE1A630000008003B21A020000008003B61A010001008003BA1A192A00008003BE1A000000008003DA1A0000000000074A058437079200074E054087000000078206110001000007820620000F000007D207000000000007EE07000000000007362A0A00640000073A2A080000000007522A5000010080EF59050000000080EF5D050000000080EF6D050000000080EF610B0100000080EFE50A0100000080EF110B0000000000079A2A00000000@$*#04FF1EF700920103000007362A0A00640000073A2A080000000007522A50000100[Gg]

app_start_adverts

02 01 06 1a 21 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 21 00 00 00 00

@$*#04FF26F7009201040080EF610B010000000007721F0200000080EFE50A0100000080EF110B00000000

app_stop_adverts

Ticks to done reset to 5

@$*#04FF1EF700920103000007EE1D0200000000078E1E0000000080EF610B01000000

ENTER myapp_advertisement_report()

02 01 06 1a 21 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 21 00 00 00 00 06 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 21 00 00 00 00

Connecting to 13:88:84:37

app_stop_adverts

@$*#04FF4EF7009201090080EFCD07DF1E000080EFD5078437079280EFDD071388000080EFD1080000000080EFE50A0100000080EF110B000000000007EE1D0200000000078E1E0000000080EF010D01000000@$*#04FF26F700920104000002FA240000000000078633000000000007E6200000000000078E1E00000000

ENTER myapp_process_write_rsp()

Write rsp

Disconnecting from slave

app_stop_adverts

@$*#04FF26F7009201040000078E1E0000000080EF610C0100000080EF8D0C0000000080EF610B01000000

ENTER myapp_connection_down()

@$*#04FF1EF7009201030080046A1F0000000000074A210000000000075E2100000000

ENTER myapp_advertisement_report()

02 01 06 1a 21 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 24 49 6c 00 00 06 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 24 49 6c 00 00

Connecting to 13:88:84:37

app_stop_adverts

@$*#04FF46F7009201080080EFCD07D81E000080EFD5078437079280EFDD071388000080EFD1080000000080EFE50A0100000080EF110B0000000000078E1E0000000080EF010D01000000@$*#04FF1EF700920103000002FA24000000000007E6200000000000078E1E00000000

ENTER myapp_connection_down()

@$*#04FF1EF7009201030080046A1F0000000000074A210000000000075E2100000000

app_start_adverts

02 01 06 1a 21 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 24 49 6c 00 00

@$*#04FF26F7009201040080EF110B0000000080EF610C0100000080EF8D0C000000000007721F01000000

app_start_adverts

02 01 06 1a 21 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 21 00 00 00 00

@$*#04FF26F7009201040080EF110B0000000080EF8D0C000000000007EE1D010000000007721F01000000

# After some time, the adv_timeout callback is invoked, but adverts keep going

@$*#04FF26F7009201040080EF110B0000000080EF8D0C000000000007EE1D010000000007721F01

000000

ENTER myapp_advertisement_timeout()                                    

# And even stopping adverts through my debug console also fails to stop them

04FF16F700920102000007EE1D0100000000078E1E00000000                         

app_stop_adverts                                                              

@$*#04FF16F700920102000007EE1D0100000000078E1E00000000                     

grpr_stop_adverts         

@$*#04FF16F700920102000007EE1D0100000000078E1E00000000

Device 2 "the well-mannered":

Broadcom Debug Port: BLEAPP CFA debug

myapp_create()

UART initialization complete!

@$*#04FFF6F70092011E0300C1E804D30000008003BA1A002800008003BE1A000000008003AE1A620000008003B21A020000008003B61A050005008003BA1A032800008003BE1A000000008003AE1A630000008003B21A020000008003B61A010001008003BA1A192A00008003BE1A000000008003DA1A0000000000074A058437079200074E051388000000078206110001000007820620000F000007D207000000000007EE07000000000007362A0A00640000073A2A080000000007522A5000010080EF59050000000080EF5D050000000080EF6D050000000080EF610B0100000080EFE50A0100000080EF110B0000000000079A2A00000000@$*#04FF1EF700920103000007362A0A00640000073A2A080000000007522A50000100

app_start_adverts

02 01 06 1a 21 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 21 00 00 00 00

@$*#04FF26F7009201040080EF610B010000000007721F0200000080EFE50A0100000080EF110B00000000

Bang! connected to 40:87:84:37

@$*#04FF26F700920104000002FA240000000000078633000000000007E6200000000000078E1E00000000

ENTER myapp_write_handler()

app_stop_adverts

Ticks to done reset to 5

@$*#04FF16F7009201020000078E1E0000000080EF610B01000000

ENTER myapp_connection_down()

@$*#04FF1EF7009201030080046A1F0000000000074A210000000000075E2100000000

app_start_adverts

02 01 06 1a 21 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 24 49 6c 00 00

@$*#04FF26F7009201040080EFE50A0100000080EF110B0000000080EF8D0C000000000007721F01000000

Bang! connected from 40:87:84:37

app_start_adverts

02 01 06 1a 21 1b c5 d5 a5 02 00 b2 be e3 11 6a f2 00 d4 ec 01 78 56 34 12 21 00 00 00 00

@$*#04FF3EF700920107000002FA240000000000078633000000000007E6200000000000078E1E0000000080EF110B0000000080EF8D0C000000000007721F01000000

ENTER myapp_connection_down()

@$*#04FF16F7009201020080046A1F0000000000074A2100000000

# On this device adverts can be stopped successfully

0 Likes

And this is all the same FW/app on the two boards?

0 Likes
Anonymous
Not applicable

Yes, same FW/app on both boards.

On Thu, Jul 3, 2014 at 11:41 AM, arvinds <admin@community.broadcom.com>

0 Likes
Anonymous
Not applicable

Hello Jcardona,

Can you try the new SDK 2.1.0?  It was just released on Friday; WICED Smart Documents &amp; Downloads

Let me know if this fixes your problem.

JT

Anonymous
Not applicable

Thanks for letting me know, JT.  I'm on vacation and won't be able to try it until the end of the month.

Best,

Javier

0 Likes

jcardona

SDK 2.2 has now been released to the WICED Smart Documents &amp; Downloads section.

0 Likes

jcardona,

Is this still an issue?

0 Likes
Anonymous
Not applicable

Have not seen it in a while.

Cheers,

j

0 Likes