<?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>Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10392/read-long-characteristic-as-ble-central</link><description>Hi,
First I&amp;#39;d like to salute the great work done by you Nordic people for those open source and hardware.
I just installed the SDK 10.0.0, S120, gcc-arm toolchain, configure my Mac OSX, plug my RedbearLab Nano ... and it JUST WORKS! Impressive. 
 But</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Feb 2017 15:57:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10392/read-long-characteristic-as-ble-central" /><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38589?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 15:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d20add95-bedd-4820-88cb-093eff474754</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Please see the Message sequence chart variant 2 offset !=0, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___b_l_e___g_a_t_t_c___v_a_l_u_e___r_e_a_d___m_s_c.html?cp=2_3_0_1_1_2_2_3_3"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38590?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 10:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1434c977-688e-4878-89a7-fc7f840c3f08</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;Where I have to multiple read ? I read in for-loop when I service discover but I get only first packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38583?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2015 19:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a41c998b-79da-45a2-a845-dda166548855</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Yes, unfortunately you will have to do multiple reads using offset to get all the data. Only 20 bytes of actual data is transfered on air in each packet, the rest is protocol overhead. So you have to do three reads in total to get 45 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38588?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 19:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a724501-e063-4ba4-9063-d79f18f21801</guid><dc:creator>RomainQ</dc:creator><description>&lt;p&gt;2- no, I need the characteristics full bytes: my peripheral advertise a characteristic with let&amp;#39;s say 45 bytes. On the central side, on HVX I only get 20 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38587?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 12:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145ff966-abaa-4963-8b72-ca8111a4e91a</guid><dc:creator>run_ar</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Yes, I agree this should have been stated in the API documentation as well. I&amp;#39;ll create a suggestion for that.&lt;/li&gt;
&lt;li&gt;The 7 bytes is protocol overhead. Is there a particular reason why you want that forwarded to your application?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38586?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 10:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac8a89a4-7ec7-48f6-b2ac-16d67142c78b</guid><dc:creator>RomainQ</dc:creator><description>&lt;p&gt;1 - what is disturbing: the com buffer is limited to 20 bytes max, this is not clearly visible in the doc.
2 - the data will be forwarded: my peripheral sent 27 bytes, softdevice only send me 20 bytes without warnings it truncated it. I need to know the peripheral did try to send me more data !&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want to argue too much about it as the manual handle with read works. But a new user can easily fall in the problems I found.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38585?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 10:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b71d7ad-05d7-421f-a8fe-295907883048</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;This would be possible, but I&amp;#39;m not sure I see the big difference between this solution and the actual implementation except that in this case the application would be force to handle the callback, instead of just stop reading if desired.&lt;/p&gt;
&lt;p&gt;&amp;quot;What is disturbing is that the notification data limit is not easy to see when you discover the SDK&amp;quot;&lt;br /&gt;
Not sure i understand what you mean by this.&lt;/p&gt;
&lt;p&gt;&amp;quot;And you don&amp;#39;t see how many bytes were sent by the peripheral vs how many bytes you actually receive in the central.&amp;quot;&lt;br /&gt;
The data received by the Softdevice will be forwarded to the applicaiton.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38584?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 09:00:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ded85463-c138-4940-8582-d734fbf2d227</guid><dc:creator>RomainQ</dc:creator><description>&lt;p&gt;Thanks for replying. But what about keeping a small buffer and giving several calls to a callback with offset.
What is disturbing is that the notification data limit is not easy to see when you discover the SDK. And you don&amp;#39;t see how many bytes were sent by the peripheral vs how many bytes you actually receive in the central.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38582?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 08:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0d461ff-d598-4208-99f2-381efef2d553</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;We had an internal discussion how to do this, and it was decided that this should resemble the size of the payload sent on air. This way we avoid having to allocate a lot of memory internally in the Softdevice to handle long reads, instead this has to be handled by the application. This way it&amp;#39;s easier to manage memory usage in a wide variety of applications. The size can vary quite a lot, and the application doesn&amp;#39;t necessarily know how many packets will be sent on air. Alternatively, if we did this procedure in the Softdevice, we would need large buffers both in the Softdevice and in the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38581?ContentTypeID=1</link><pubDate>Sun, 22 Nov 2015 18:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06d815aa-a9c6-4985-8772-dd82265b53d8</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;Ah, I see, did not see that part of your question. I have no knowledge of the motivation behind this design choise :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read long characteristic as ble central</title><link>https://devzone.nordicsemi.com/thread/38580?ContentTypeID=1</link><pubDate>Sun, 22 Nov 2015 18:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c12882e-bf51-4bcd-b128-a0a750e84f77</guid><dc:creator>RomainQ</dc:creator><description>&lt;p&gt;Hi,
Thanks, I did that and my project is working. I&amp;#39;m just wondering why the SoftDevice itself is not doing it ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>