<?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>MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30555/macos-bluetooth-connnection-problem</link><description>Hi All, 
 My configuration: 
 
 nrf52832 microcontroller 
 Softdevice S132 V4.0.2 
 Nordic SDK 13.0 
 
 I have problem with MacOS computer. 
 If I try to connect via BLE using a MacOS system, nrf52832 aborts connection and reboot automatically. 
 Instead</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2018 16:19:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30555/macos-bluetooth-connnection-problem" /><item><title>RE: MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/thread/122166?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 16:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7be3b73-0428-4b9f-9aaf-26f42fc729ae</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried testing this with a Macbook air running macOS 10.13.3, using the example&amp;nbsp;ble_app_hids_keyboard in SDK 13, but it works fine here. Could you try the same example ? You should also set&amp;nbsp;NRF_LOG_DEFAULT_LEVEL in sdk_config.h to 4 to get DEBUG level logging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/thread/121823?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 15:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22f694c5-84d6-4055-b03a-e605f2604bd5</guid><dc:creator>leoc7</dc:creator><description>&lt;p&gt;Nothing change. Error 8 occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/thread/121806?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 13:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15b2e2cf-ef1d-4fb5-8daa-d8b31684490c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What happens if you comment out the&amp;nbsp;&lt;span&gt;nrf_ble_gatt_att_mtu_periph_set() function ?&amp;nbsp; Do you get the same&amp;nbsp;behavior?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I.e.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;void gatt_init(void)&lt;br /&gt;{&lt;br /&gt;ret_code_t err_code;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;err_code = nrf_ble_gatt_init(&amp;amp;m_gatt, NULL);&lt;br /&gt;APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;//err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, 64);//64&lt;br /&gt;//APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/thread/121785?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 12:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e644b617-520a-4145-8af1-41821ab6af35</guid><dc:creator>leoc7</dc:creator><description>&lt;p&gt;This is my gatt_init():&lt;/p&gt;
&lt;p&gt;static nrf_ble_gatt_t&amp;nbsp; &amp;nbsp;m_gatt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;/**@brief Function for initializing the GATT library. */&lt;br /&gt;void gatt_init(void)&lt;br /&gt;{&lt;br /&gt; ret_code_t err_code;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; err_code = nrf_ble_gatt_init(&amp;amp;m_gatt, NULL);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, 64);//64&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, I&amp;#39;m sure. Switch case is OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/thread/121667?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 13:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9336d182-8777-4565-8629-4993063540a3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The error indicates that you are in a&amp;nbsp;&lt;span&gt;Invalid Connection State or that no ATT_MTU exchange request are pending.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is this from a native SDK 13 example? or is it ported from SDK 12? Are you using the&amp;nbsp;GATT&amp;nbsp;Module (gatt_init()) ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also make sure that you have a &amp;quot;break;&amp;quot; in the&amp;nbsp;switch case above&amp;nbsp;BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/thread/121211?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 09:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ca8d8d8-a1be-4dbb-b067-688f4f272693</guid><dc:creator>leoc7</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Error occurs here:&lt;/p&gt;
&lt;p style="padding-left:60px;"&gt;case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:&lt;br /&gt;err_code = sd_ble_gatts_exchange_mtu_reply(p_ble_evt-&amp;gt;evt.gatts_evt.conn_handle,&amp;nbsp; BLE_GATT_ATT_MTU_DEFAULT);&lt;br /&gt;APP_ERROR_CHECK(err_code); //NB: return error code = 8&amp;nbsp;&lt;br /&gt;break;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error code nr. 8.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/thread/121095?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 14:24:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebcf6b82-5203-43d1-b0bc-199f2ecc27a4</guid><dc:creator>leoc7</dc:creator><description>&lt;p&gt;Many thanks!&lt;/p&gt;
&lt;p&gt;I will try and I will provide you the problem!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MacOS Bluetooth connnection problem</title><link>https://devzone.nordicsemi.com/thread/121047?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 08:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1815c287-2e35-4d1c-906d-95c0b27432e4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What example in the SDK are you testing? A reset indicates that you are running into the error handler, where the default behavior is to do a reset. You should then debug in order to find the reason for the reset. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;this post&lt;/a&gt; about debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>