<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>If don&amp;#39;t use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86518/if-don-t-use-32-768k-low-frequency-crystal-what-will-happen</link><description>Dear , 
 I use nRF52833 to transfer audio,but I found that this audio will delay 130ms. 
 I didn&amp;#39;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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Apr 2022 09:03:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86518/if-don-t-use-32-768k-low-frequency-crystal-what-will-happen" /><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/362255?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 09:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f71e54a4-c7b3-4173-9122-a4a64133733f</guid><dc:creator>liujirong888</dc:creator><description>&lt;p&gt;Dear Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your reply. In fact,this audio software have 2 version, sender and receiver.&lt;/p&gt;
&lt;p&gt;the sender and receiver both work on nRF52833 board.so this software don&amp;#39;t need to connect to phone.&lt;/p&gt;
&lt;p&gt;this software use proprietary 2.4G.I will check if can get the updated conn param.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/362249?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 08:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e39e801-c362-4423-a1ae-8c16cd3f3527</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;I suggest you add the code below&amp;nbsp; to your BLE event handler to monitor the connection parameter updates and see what the connection interval actually ends up being.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@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-&amp;gt;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-&amp;gt;evt.gap_evt.params.conn_param_update.conn_params.max_conn_interval *
                1.25;

           NRF_LOG_INFO(&amp;quot;Connection paramaters updated. New interval %d ms&amp;quot;, new_conn_interval);
        }
        ...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/362231?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 07:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eba7a86-de64-4eb6-b510-f1fa241a438b</guid><dc:creator>liujirong888</dc:creator><description>&lt;p&gt;Dear Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried to modify the CONN_INTERVAL as below to 2ms,seem have little improvement.&lt;/p&gt;
&lt;p&gt;But I need to improve from 130ms latency to 20ms latency. So only modify conn_interval can not fix this issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define CONFIG_MIN_CONN_INTERVAL_MS 2&lt;/p&gt;
&lt;p&gt;//#define CONFIG_MIN_CONN_INTERVAL_MS 7&lt;/p&gt;
&lt;p&gt;#define CONFIG_MAX_CONN_INTERVAL_MS 2&lt;/p&gt;
&lt;p&gt;//#define CONFIG_MAX_CONN_INTERVAL_MS 7&lt;/p&gt;
&lt;p&gt;//#define CONFIG_SLAVE_LATENCY 99&lt;/p&gt;
&lt;p&gt;#define CONFIG_SLAVE_LATENCY 2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/362226?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 07:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcfa35f7-a0bc-4223-ad60-dab5e6ee56a8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s only supported in the Connect SDK. And as I indicated earlier, LLPM is not really suited for audio transfers as you will give you a reduced data rate.&lt;/p&gt;
&lt;p&gt;If this is for continuous Audio streaming then you should consider LE Audio: &lt;a href="https://www.nordicsemi.com/Products/Bluetooth-LE-Audio"&gt;https://www.nordicsemi.com/Products/Bluetooth-LE-Audio&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/362208?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 06:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58349577-bd62-4e9a-b545-31cdc161493a</guid><dc:creator>liujirong888</dc:creator><description>&lt;p&gt;Dear Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Does nRF5_SDK_17.0.2_d674dde support llpm? I saw this is latest nRF connect SDK?&lt;/p&gt;
&lt;p&gt;My current software run in the nRF5_SDK_17.0.2_d674dde. so I should set it lower in both sides of the link?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/362011?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 09:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc5fa136-d0ca-4373-bef7-0d10f08aacfa</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;The shortest interval supported by the Bluetooth specification is 7.5 ms. Although, it is technically possible to set it lower if you have control of both sides of the link and use this proprietary extension here &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/llpm/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/llpm/README.html&lt;/a&gt;, you will end up sacrificing throughput for better latency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/362000?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 08:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e20ceaca-d6a0-4c85-b720-a21cdeb29dba</guid><dc:creator>liujirong888</dc:creator><description>&lt;p&gt;Dear Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to shorter interval in my application,but I found that&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the interval seems already&amp;nbsp;minimum 7 ms. Because I saw that &amp;quot;&lt;span&gt;Minimum Connection Interval [ms] &amp;lt;7-4000&amp;gt;&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;You can check below information for your reference. what should I do ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;// &amp;lt;o&amp;gt; Minimum Connection Interval [ms] &amp;lt;7-4000&amp;gt;&lt;br /&gt;// &amp;lt;i&amp;gt; Set the Minimum Connection Interval that is sent in the Connection Parameter Update request.&lt;br /&gt;/**@brief Minimum Connection Interval [ms] &amp;lt;7-4000&amp;gt; */&lt;br /&gt;#define CONFIG_MIN_CONN_INTERVAL_MS 7&lt;br /&gt;#define CONFIG_MIN_CONN_INTERVAL ROUNDED_DIV(100u * CONFIG_MIN_CONN_INTERVAL_MS, 125)&lt;/p&gt;
&lt;p&gt;// &amp;lt;o&amp;gt; Maximum Connection Interval [ms] &amp;lt;7-4000&amp;gt;&lt;br /&gt;// &amp;lt;i&amp;gt; Set the Maximum Connection Interval that is sent in the Connection Parameter Update request.&lt;br /&gt;/**@brief Maximum Connection Interval [ms] &amp;lt;7-4000&amp;gt; */&lt;br /&gt;#define CONFIG_MAX_CONN_INTERVAL_MS 7&lt;br /&gt;#define CONFIG_MAX_CONN_INTERVAL ROUNDED_DIV(100u * CONFIG_MAX_CONN_INTERVAL_MS, 125)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/361393?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 06:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1286867b-b57f-4cee-8315-3935617f1c53</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The Softdevice clock source is configured through the NRF_SDH_CLOCK_* symbols, and these are the recommended settings if you don&amp;#39;t have a crystal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration

//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH 

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated
// &amp;lt;i&amp;gt;  if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_ACCURACY  - External clock accuracy used in the LL to compute timing.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_ACCURACY_20_PPM 
// &amp;lt;8=&amp;gt; NRF_CLOCK_LF_ACCURACY_10_PPM 
// &amp;lt;9=&amp;gt; NRF_CLOCK_LF_ACCURACY_5_PPM 
// &amp;lt;10=&amp;gt; NRF_CLOCK_LF_ACCURACY_2_PPM 
// &amp;lt;11=&amp;gt; NRF_CLOCK_LF_ACCURACY_1_PPM 

#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 1
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The NRF_CLOCK_LF_SRC_SYNTH source is not low power, and is generally not recommended.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/361302?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2022 02:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e96d8503-b82a-4188-8ccc-a852600c2acb</guid><dc:creator>liujirong888</dc:creator><description>&lt;p&gt;Dear Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; May I know how to set sdk_config.h if I don&amp;#39;t want to use 32.768K crystal?&lt;/p&gt;
&lt;p&gt;Does my current setting OK for not using 32.768K ?&lt;/p&gt;
&lt;p&gt;#define NRFX_CLOCK_CONFIG_LF_SRC&amp;nbsp;&amp;nbsp; 2&lt;/p&gt;
&lt;p&gt;#define CLOCK_CONFIG_LF_SRC&amp;nbsp;&amp;nbsp; 2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If don't use 32.768k low frequency crystal, what will happen?</title><link>https://devzone.nordicsemi.com/thread/361195?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 10:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dc6b728-8b5a-4af6-823e-00e8987d9fc3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The LF clock does not affect the latency. Probably what you should look at is the connection interval. You can use the &lt;span&gt;&lt;a title="Connection Parameters Negotiation" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_ble_conn_params.html?cp=8_1_3_2_4"&gt;Connection Parameters Negotiation&lt;/a&gt;&lt;/span&gt; module for requesting a shorter interval in your application.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>