<?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>Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25439/central-receiving-more-than-23-bytes-as-a-notification</link><description>Hello community, 
 I am working in a central device with SDK 13 v. 4, PCA10400 (NRF52832) and SD 132 and one task is to receive 30 bytes from a sensors as a notifcation, but unfortunally I dont get anything, the MTU is already set up in ble_stack_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Oct 2017 12:22:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25439/central-receiving-more-than-23-bytes-as-a-notification" /><item><title>RE: Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/thread/100267?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 12:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa5ec86-3926-49ef-8330-653c4234f653</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi DavidC. Sorry for the delayed response. Regarding your code above, you need to look at the GATT library in SDK 13 instead of MTU. See this &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/lib_ble_gatt.html?cp=4_0_2_3_1_10"&gt;link&lt;/a&gt; for details. Also, take a look at this function in the main.c file of the ble_app_uart example under the ble_peripheral folder. Try that instead of using the sniffer. Hope that helps!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void gatt_init(void) {
ret_code_t err_code;
err_code = nrf_ble_gatt_init(&amp;amp;m_gatt, gatt_evt_handler);
APP_ERROR_CHECK(err_code);

err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, 64);
APP_ERROR_CHECK(err_code); }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/thread/100264?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 07:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca6480b5-2636-4c36-badd-72714483dc69</guid><dc:creator>DavidC</dc:creator><description>&lt;p&gt;I&amp;#39;ve another question,  there is a way to activate the DLE using &amp;#39;ble_gap_opt_ext_len_t&amp;#39;  and using &amp;quot;rxtx_max_pdu_payload_size = 33&amp;quot; but where this code should be? Before the connection is stablish or when the ble stack is starting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/thread/100266?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 14:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f5ac5e7-e7fc-42a4-97f9-84d88b0516a6</guid><dc:creator>DavidC</dc:creator><description>&lt;p&gt;for readind using cypress&lt;/p&gt;
&lt;p&gt;Source:  Destination Protocol length Info
Master     Slave            ATT    33   Rcvd Read Request, Handle: 0x0037
Slave      Master          ATT     57   Rcvd Read Response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/thread/100263?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 14:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b47ec80-4781-4eeb-a11f-c267559ac803</guid><dc:creator>DavidC</dc:creator><description>&lt;p&gt;Thanks for the file, i&amp;#39;m able to check what is going on
using nrf Connect to activate the notifications on the peripheral is ok but it&amp;#39;s not receiving any notifcation, on the other hand when it tries to read the characteristics, the sniffer throws the following error:
Source:  Destination Protocol length Info
Master       Slave        ATT     35  Rcvd Read Blob Request, Handle 0x0032, offset:22
Slave         Master      ATT     35  Rcvd Error response - Attribute not long, Handle: 0x0037
But when I am using the cysmart from Cypress  in order to get the notification, i got the following:
Source:  Destination Protocol length Info
Slave        Master       L2CAP     27     Rcvd Malformed packet
But Im still having the data on my cellphone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/thread/100265?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 11:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2f54357-c86b-47b7-a62d-3e856480b4fd</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi DavidC. As Endnode mentioned, there is an unofficial sniffer app for the nrf52. You can find it &lt;a href="https://devzone.nordicsemi.com/question/44132/sniffer-for-nrf52-dk/"&gt;here&lt;/a&gt;. Could also be useful to look at the nrf sniffer user guide &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/thread/100261?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 10:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d194df0-13c9-4a9e-bd57-99672e7d36ae</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Why? I don&amp;#39;t know anything, I&amp;#39;m just giving you suggestions. The problem is that you give too high level hints (like &amp;quot;it works with Cypress but not with Nordic DK&amp;quot;). There can be so many things different... the only thing which is for sure (but from your description you seems to understand this so you are heading in the right direction for debugging): Notification cannot be longer then current ATT_MTU size agreed on the connection link. So now it&amp;#39;s question how exactly you control both link sides and what ATT_MTU is agreed on particular link. Having the sniffer (and there is one unofficial Nordic sniffer binary released for PCA10040 nRF52 DK on this forum) is the best and fastest way but you can try to get glimps of that on higher debugging layers as well...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/thread/100262?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 09:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71bcb9bf-fd62-4fdc-a9e6-b4b9878aa193</guid><dc:creator>DavidC</dc:creator><description>&lt;p&gt;I dont have any sniifer, I am using pca10040 and the sniffer program does not support it.
I&amp;#39;ve a doongle of Cypress company and it receives the 30 bytes via notication  but when I use nRF connect with my pca10040 I can not receive any notification and if i read them  it returns an error:&lt;/p&gt;
&lt;p&gt;Read operation failed: BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_LONG (0x010B)&lt;/p&gt;
&lt;p&gt;why do you know i cannot get this 30 bytes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central receiving  more than 23 bytes as a notification</title><link>https://devzone.nordicsemi.com/thread/100260?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 07:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:240be5cf-cf53-4538-b5ff-5989da1380dd</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;MTU size is agreed on every connection (BLE stacks are usually doing it automatically at the beginning) and it will settle down on value which is minimum of both max supported values on both sides. So also your peer must be able to support larger (G)ATT MTUs. Do you have a trace from BLE sniffer to see what is happening on the radio?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>