If don't use 32.768k low frequency crystal, what will happen?

Dear ,

          I use nRF52833 to transfer audio,but I found that this audio will delay 130ms.

I didn't use 32.768K low frequency crystal, do you think this will affect delay time?

I modified below definition from 1 to 2 in sdk_config.h

#define NRFX_CLOCK_CONFIG_LF_SRC   2

#define CLOCK_CONFIG_LF_SRC   2

Parents Reply
  • Hi,

    The GAP central (phone, etc) will not accept a request for a connection interval lower than what is permitted by the specification (i.e. 7.5 ms).

    I suggest you add the code below  to your BLE event handler to monitor the connection parameter updates and see what the connection interval actually ends up being.

    /**@brief Function for handling BLE events.
     *
     * @param[in]   p_ble_evt   Bluetooth stack event.
     * @param[in]   p_context   Unused.
     */
    static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
    {
        uint32_t err_code;
    
        switch (p_ble_evt->header.evt_id)
        {  
            case BLE_GAP_EVT_CONN_PARAM_UPDATE:
            {
                /* Interval is given in units of 1.25 ms. Multiply by 1.25 to get interval in ms */
                uint32_t new_conn_interval =
                    p_ble_evt->evt.gap_evt.params.conn_param_update.conn_params.max_conn_interval *
                    1.25;
    
               NRF_LOG_INFO("Connection paramaters updated. New interval %d ms", new_conn_interval);
            }
            ...

Children
Related