Issue of BLE connection and also broadcast.

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

cross mob
Anonymous
Not applicable

===

SDK: 2.1.1

Tag: 920737.

app: hello-sensor based customer app.

OTA firmware size ~ 20KB.

===

Problem:

We enable only 1-slave BT connection with client handset and also this slave device can
broadcast with ADV which includes some sensor values of device during connection was established. However we find sometimes when 2nd connection attempt with client,
sometimes it can let 2nd device to connect with client (why? coz it's 1 only configured) and also if disconnecting 2nd link,  the ADV broadcast is gone at handset scan? I try this one hello-sensor example, it can get same failed result, any help?

What I modify is,
- in hello_sensor_connection_up(),

disable "stop adv" and call blecm_setAdvDuringConnEnable(TRUE) to
activate ADV during connection phase.

- in hello_sensor_create();

add 2 line below,

    blecm_ConMuxInit(1);

    //blecm_enableConMux();  //mark it coz we dont need multi-connection.

to sum up,

after configuration with only 1 slave connection ability and add with ADV during
BT-link, sometimes 2nd device can also be connected and after it disconnects,
ADV is gone. Don't know why.

0 Likes
19 Replies