This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

erratic advertising after migration to SDK14 (from 12.x):

hello all

This is one of the point that causes me problems into my migration: I figured out the new logs and the SD obbervers... now this:

  • the 52832 advertises correctly (with the correct services + attributes): the app receive the BLE_ADV_EVT_FAST
  • but it stops being detectable after 10-15 secs (way before the end of the 180s adv_timeout). I do not receive anything (e.g. BLE_ADV_EVT_IDLE)
  • If I succeed in connecting before the 10 secs, I receive the BLE_GAP_EVT_CONNECTED, there is the GATT negociation and .... nothing. freeze ! the client cannot read or write anything. at least no event reaches the app.

Parents
  • second part (nothing moves after connection) self fixed: In fact not only you must register the SDH observer in your app (usually main.C) but also in your service module (ble_XXX). in nordic's examples it is usually done in the macro BLE_XXS_DEF. Now the service catch correctly those events and process accordingly.

    the timeout problem is still there, but I will do more tests and write a new post if needed

    it can be closed now

Reply
  • second part (nothing moves after connection) self fixed: In fact not only you must register the SDH observer in your app (usually main.C) but also in your service module (ble_XXX). in nordic's examples it is usually done in the macro BLE_XXS_DEF. Now the service catch correctly those events and process accordingly.

    the timeout problem is still there, but I will do more tests and write a new post if needed

    it can be closed now

Children
Related