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

Can we increase the directed slow advertising timeout value to 10 mins or it is only fixed to 180 seconds ?

Hi,

I am implementing the whitelisting feature so that the NRF52 only pairs with one phone at a time. We require the NRF52 to advertise for 10 mins but I could only set the fast advertising timeout to 30 seconds while the slow advertising interval to 180 seconds. Setting any value above these gives me invalid param error. Can you please tell me whether we can increase the timeout value and how it can be done?

We are using SDK 14.2 and NRF52 DK. 

  • FormerMember
    0 FormerMember

    How do you set the timeouts? Do you set the timeouts using ble_adv_modes_config_t before calling ble_advertising_init() in advertising_init() in main.c?

    typedef struct
    {
        bool     ble_adv_on_disconnect_disabled;  /**< Enable or disable automatic return to advertising upon disconnecting.*/
        bool     ble_adv_whitelist_enabled;       /**< Enable or disable use of the whitelist. */
        bool     ble_adv_directed_enabled;        /**< Enable or disable direct advertising mode. */
        bool     ble_adv_directed_slow_enabled;   /**< Enable or disable direct advertising mode. */
        bool     ble_adv_fast_enabled;            /**< Enable or disable fast advertising mode. */
        bool     ble_adv_slow_enabled;            /**< Enable or disable slow advertising mode. */
        uint32_t ble_adv_directed_slow_interval;  /**< Advertising interval for directed advertising. */
        uint32_t ble_adv_directed_slow_timeout;   /**< Time-out (number of tries) for direct advertising. */
        uint32_t ble_adv_fast_interval;           /**< Advertising interval for fast advertising. */
        uint32_t ble_adv_fast_timeout;            /**< Time-out (in seconds) for fast advertising. */
        uint32_t ble_adv_slow_interval;           /**< Advertising interval for slow advertising. */
        uint32_t ble_adv_slow_timeout;            /**< Time-out (in seconds) for slow advertising. */
    } ble_adv_modes_config_t;
    

Related