BLE stops advertising randomly

Hi,

  We have developed application with the below services in NRF connect SDK: 2.4.0 

1. MESH Provisioning/proxy service

2. Nordic uart service

3. SMP service

when we power cycle the Bluetooth then every works fine. it advertises the device name, able to connect to above mentioned services and able to communicate using mobile app.

The problem statement:

The problem is when we leave the ble for some time, randomly it stops advertising and we will not be able to discover the device anymore, it requires the power cycle to start advertising.

1 is there any advertising timeout configuration in the prj.cfg file

2. how we can change the advertising time interval in chat mesh sdk

3. does the device enter into sleep mode by default.?

Regards,
Ram

  • Hi Ram

    It would be very helpful if you can post the logs from the device so we can see what is happening. 

    1. Not that I can recall, you need to set CONFIG_BT_PER_ADV=y in prj.conf to enable it. However the interval is set the main file as you can see in this example

    2. I'm not sure what you mean by chat mesh sdk? You wrote earlier you are using NCS 2.4.0

    3. The device don't go into sleep by default.  Nor does BLE advertisements time out by default in NCS, so the logs would be very helpful.

    Could it be that some other device connects to your device? That would stop the advertisement. 

    Regards

    Runar

Related