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