<?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>Communication with an unpaired weara fails at 133 as shown below.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80118/communication-with-an-unpaired-weara-fails-at-133-as-shown-below</link><description>Unable to connect to Bonded weara with GATT 133 error. Currently, there is only one solution, turning on and off Bluetooth in the OS, which temporarily improves the connection but does not fundamentally solve the problem. 
 
 
 10-21 10:17:05:257 D/PairingDeviceSearchFragment</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Sep 2021 10:17:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80118/communication-with-an-unpaired-weara-fails-at-133-as-shown-below" /><item><title>RE: Communication with an unpaired weara fails at 133 as shown below.</title><link>https://devzone.nordicsemi.com/thread/331880?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 10:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:964d9a05-0aee-4499-bf49-caae386c8148</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;And I assume this wearable device use an nRF52832 for BLE communication? Does the nRF52 device you&amp;#39;re using have an external LF clock or not? If not, please make sure that the clock configs in sdk_config.h are set to these values.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &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 4
#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 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The GATT_ERROR 133 is a rather famous Android error. What application are you using for Bluetooth communication on the Android side? It isn&amp;#39;t as common anymore on more recent Android devices, but still sometimes happens unfortunately.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;easiest way to get around this, is generally to add a delay of a few ms when connecting to a device (before connecting through GATT). If you&amp;#39;re using the Android BLE library to develop your Android application I&amp;#39;d recommend adding a few retries upon connection failures, as that usually solves this issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with an unpaired weara fails at 133 as shown below.</title><link>https://devzone.nordicsemi.com/thread/331806?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 00:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06c52fc-39d6-42b4-9a72-c3dfca48f773</guid><dc:creator>applesan</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;Simonr&lt;/p&gt;
&lt;p&gt;Thank you for your quick reply and I&amp;#39;m sorry for the lack of information.&lt;/p&gt;
&lt;p&gt;Yes, it is about a wearable device product as you guessed.&lt;/p&gt;
&lt;p&gt;We face this GATT_ERROR regardless of the Android version I think. At least it is happening at the following devices:&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;Nexus with Android 8&lt;br /&gt;- XPERIA with Android 9&lt;br /&gt;- Pixel with Android 10&lt;/p&gt;
&lt;p&gt;After we face the GATT_ERROR, it is not possible to solve the error when connecting, by disabling and enabling the Smartphone Bluetooth setting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try using the DK to know the detail, but if you have something that might help us to understand the GATT_ERROR,&amp;nbsp;we would appreciate anything.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with an unpaired weara fails at 133 as shown below.</title><link>https://devzone.nordicsemi.com/thread/331745?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 13:31:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30eac41e-bf9e-428e-9b31-9a4867112ba1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you think you can fill me in on what &amp;quot;weara&amp;quot; is, as Google doesn&amp;#39;t seem to find anything BLE related? I&amp;#39;m guessing it is some kind of &lt;strong&gt;weara&lt;/strong&gt;ble device. Is it running an Android version? Is the other device that&amp;#39;s trying to connect to it an nRF52 DK or a custom board that you&amp;#39;ve made?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>