<?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>Unusual behaviour with specific model host (SM-T580) with nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24453/unusual-behaviour-with-specific-model-host-sm-t580-with-nrf52</link><description>Hello there, 
 I am working with a peripheral device that we are testing with many different devices, and have run into a very unusual issue. With a brand new Android tablet (SM-T580) we are unable to connect to our prototype device which uses an nRF52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Aug 2017 20:10:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24453/unusual-behaviour-with-specific-model-host-sm-t580-with-nrf52" /><item><title>RE: Unusual behaviour with specific model host (SM-T580) with nRF52</title><link>https://devzone.nordicsemi.com/thread/96276?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2017 20:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbc18e4c-2b5e-4f65-af28-03d35af3c6cc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Note that migrating from S132 v4.0.2, to S132 v4.0.4 should be fairly simple. Replace the header files in the SDK(located in the folder &lt;code&gt;SDK_folder\components\softdevice\s132\headers\&lt;/code&gt;) with the ones you download(located in folder &lt;code&gt;s132_nrf52_4.0.4\s132_nrf52_4.0.4_API\include&lt;/code&gt;), and remember to flash the new softdevice hex(&lt;code&gt;s132_nrf52_4.0.4_softdevice.hex&lt;/code&gt;) to your device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusual behaviour with specific model host (SM-T580) with nRF52</title><link>https://devzone.nordicsemi.com/thread/96275?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2017 19:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46aeab11-26fc-4192-aabd-a1cbe1dc01b7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I have seen some report about the SM-T580 sending version exchange and length request in parallel (i.e., does not wait for the peripheral to respond before sending the next control packet). I looked some more into the problem, and it might be solved without any code changes on your part.&lt;/p&gt;
&lt;p&gt;We have released a version &lt;strong&gt;4.0.4 of the S132&lt;/strong&gt; SoftDevice, where we have relaxed the spec abit by allowing overlapping peer-initiated Link Layer control procedures. You can download this S132 version 4.0.4 from &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF52832/S132-SD-v4/58803"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;From s132 v.4.0.4 release notes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;quot;The SoftDevice slave role now
accepts overlapping peer-initiated
Link Layer control procedures
(DRGN-8623,DRGN-8975). The following
LL control procedures can be executed
in parallel with any other control
procedure, except forthemselves: LE
Ping, Feature Exchange, Data Length
Update, and Version Exchange. This is
done for compatibility reasons. As a
result of this,
BLE_GAP_OPT_COMPAT_MODE_2 has no
effect&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This approach could be tested before doing any code changes. Even if the tablet is not following the BLE spec perfectly and have some bugs, it might be worth the trouble to solve this issue if your end-customers also are using these tablets to connect to your product. If v.4.0.4 does not work &amp;quot;out-of-the-box&amp;quot;, try the code changes proposed in the answer above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusual behaviour with specific model host (SM-T580) with nRF52</title><link>https://devzone.nordicsemi.com/thread/96274?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2017 17:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:627eed0b-2bbd-4242-a809-2bf1e49d4367</guid><dc:creator>Musa</dc:creator><description>&lt;p&gt;I appreciate the detailed answer. &amp;quot;Galaxy TAB A tablets have been reported ... of breaking/not following the Bluetooth specification&amp;quot;. That would explain it. It would have been nice of Samsung to mention that somewhere so I knew before I bought it. I feel obliged to at least attempt your suggested solutions, but I think I will return the tablet on principle because listing it as &amp;quot;Bluetooth 4.2 compatible&amp;quot; is false advertising.&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusual behaviour with specific model host (SM-T580) with nRF52</title><link>https://devzone.nordicsemi.com/thread/96273?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2017 12:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:491467d2-7dbd-4fe2-8081-796df0efa329</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;These Galaxy TAB A tablets have been reported several times of breaking/not following the Bluetooth specification.&lt;/p&gt;
&lt;p&gt;With S132 v.3.1.0 (for nRF52) we added something called compatibility mode(compatibility mode 2) that can be enabled to still be able to connect to some of these devices that are not following the Bluetooth Specification. Since this tablet is working with S130, enabling this compatibility mode might not solve this specific issue, but it’s worth a try. You can enable it like this(You need to call the option-set function after you have enabled the SoftDevice, i.e after &lt;code&gt;softdevice_enable(&amp;amp;ram_start);&lt;/code&gt;):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_opt_t ble_opt;
memset(&amp;amp;ble_opt, 0, sizeof(ble_opt));

ble_opt.gap_opt.compat_mode_2.enable = 1;

err_code = sd_ble_opt_set(BLE_GAP_OPT_COMPAT_MODE_2,&amp;amp;ble_opt); 
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If this does not help, the problem is most likely that the tablet is not able to handle the DLE procedure (longer on-air data packets). In SDK 13 we have a GATT module that handles this. I suggest to use the default payload size (27), so that the DLE procedure is not initiated. By default, we set the DLE size to be equal the size of the ATT_MTU in the gatt module, so if we want to have a longer ATT_MTU but at the same time keep the default DLE size, we have to change this in the gatt module(&lt;code&gt;nrf_ble_gatt.c&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;In the function &lt;code&gt;link_init(..)&lt;/code&gt; change the line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_link-&amp;gt;data_length_desired        = NRF_BLE_GATT_MAX_MTU_SIZE + LL_HEADER_LEN;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_link-&amp;gt;data_length_desired        = BLE_GATT_ATT_MTU_DEFAULT + LL_HEADER_LEN;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and in the function &lt;code&gt;nrf_ble_gatt_init(…)&lt;/code&gt; change the line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_gatt-&amp;gt;data_length             = NRF_BLE_GATT_MAX_MTU_SIZE + LL_HEADER_LEN;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_gatt-&amp;gt;data_length             = BLE_GATT_ATT_MTU_DEFAULT + LL_HEADER_LEN;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If the issue is still there after this, try to set &lt;code&gt;NRF_BLE_GATT_MAX_MTU_SIZE&lt;/code&gt; to 100.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>