<?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>Need some help getting faster sending rates with the NRF8001 and Arduino Library. Running out of credits.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66850/need-some-help-getting-faster-sending-rates-with-the-nrf8001-and-arduino-library-running-out-of-credits</link><description>I&amp;#39;m using the NRF8001 with a Teensy 4.0. I&amp;#39;ve been able to find a port of the Arduino library for the Teensy here ( https://github.com/tato123/nrf8001_arm_support ) 
 I&amp;#39;m trying to send a bunch of data in 20 byte chunks to my android phone very quickly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Oct 2020 16:06:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66850/need-some-help-getting-faster-sending-rates-with-the-nrf8001-and-arduino-library-running-out-of-credits" /><item><title>RE: Need some help getting faster sending rates with the NRF8001 and Arduino Library. Running out of credits.</title><link>https://devzone.nordicsemi.com/thread/273848?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 16:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d11f275c-8798-4335-bdac-a4e0249eda00</guid><dc:creator>awneil</dc:creator><description>[quote userid="94090" url="~/f/nordic-q-a/66850/need-some-help-getting-faster-sending-rates-with-the-nrf8001-and-arduino-library-running-out-of-credits/273597#273597"]My connection interval is set to 7.5ms min and max[/quote]
&lt;p&gt;That&amp;#39;s what your peripheral requests - you need to find out what your Central is actually granting.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s a phone, it is unlikely to be giving you 7.5ms.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need some help getting faster sending rates with the NRF8001 and Arduino Library. Running out of credits.</title><link>https://devzone.nordicsemi.com/thread/273715?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 11:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dead979f-dd87-4728-93ee-18c63bb884e4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;For new development we recommend the nRF52-series, the nRF52 have much higher throughput since it can support Data Length Extension (255bytes instead of 20bytes). Also more packets can be sent in each connection event. Also check out this link that affect the nRF8001:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/what-impact-does-the-deprecation-and-withdrawal-of-bluetooth-core-specification-v4-0-and-v4-1-have-on-your-current-and-future-products"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/what-impact-does-the-deprecation-and-withdrawal-of-bluetooth-core-specification-v4-0-and-v4-1-have-on-your-current-and-future-products&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need some help getting faster sending rates with the NRF8001 and Arduino Library. Running out of credits.</title><link>https://devzone.nordicsemi.com/thread/273597?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 22:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11c798a9-81f2-4499-8d36-0f2ac29b0232</guid><dc:creator>polishdude20</dc:creator><description>&lt;p&gt;My connection interval is set to 7.5ms min and max. Judging by the fact that the NRF8001 can send 20 bytes per connection interval, I expect it to be ready to send data at least every 10 ms which would be perfect for my needs. But when I have a delay of 10ms between send calls, I still get an error about there not being enough credits yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need some help getting faster sending rates with the NRF8001 and Arduino Library. Running out of credits.</title><link>https://devzone.nordicsemi.com/thread/273594?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 22:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c70907-5a93-4315-b0cd-80f19b65656d</guid><dc:creator>awneil</dc:creator><description>[quote userid="94090" url="~/f/nordic-q-a/66850/need-some-help-getting-faster-sending-rates-with-the-nrf8001-and-arduino-library-running-out-of-credits"]very quickly[/quote]
&lt;p&gt;How quickly is &amp;quot;very&amp;quot; ?&lt;/p&gt;
&lt;p&gt;In the &amp;#39;examples&amp;#39; folder, there&amp;#39;s a &amp;#39;&lt;a class="js-navigation-open link-gray-dark" id="d366a512042f8f7a88ff6609055416d8-f897c8ea724e47fe78a20dcf4c143c468929c1f7" title="ble_bandwidth_test" href="https://github.com/tato123/nrf8001_arm_support/tree/master/examples/ble_bandwidth_test"&gt;ble_bandwidth_test&lt;/a&gt;&amp;#39; - have you tried that?&lt;/p&gt;
&lt;p&gt;Remember that BLE was never designed as a high-speed link, and the nRF8001 is a very old device - so doesn&amp;#39;t benefit from more recent updates.&lt;/p&gt;
&lt;p&gt;What&amp;nbsp;are your link settings - connection interval, etc ?&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;Note that what you&amp;#39;re looking at is a port of Nordic&amp;#39;s code; the original is here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/ble-sdk-arduino"&gt;https://github.com/NordicSemiconductor/ble-sdk-arduino&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#39;d have to contact the authors/maintainers of the code you&amp;#39;re using for specific details of how that code might be optimised&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6470._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>