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
  • Dear Vidar,

            I tried to modify the CONN_INTERVAL as below to 2ms,seem have little improvement.

    But I need to improve from 130ms latency to 20ms latency. So only modify conn_interval can not fix this issue. 

    #define CONFIG_MIN_CONN_INTERVAL_MS 2

    //#define CONFIG_MIN_CONN_INTERVAL_MS 7

    #define CONFIG_MAX_CONN_INTERVAL_MS 2

    //#define CONFIG_MAX_CONN_INTERVAL_MS 7

    //#define CONFIG_SLAVE_LATENCY 99

    #define CONFIG_SLAVE_LATENCY 2

Children
  • 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);
            }
            ...

  • Dear Vidar,

              Thank you for your reply. In fact,this audio software have 2 version, sender and receiver.

    the sender and receiver both work on nRF52833 board.so this software don't need to connect to phone.

    this software use proprietary 2.4G.I will check if can get the updated conn param.

Related