<?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>Unable to transmit at 100Hz with nRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30850/unable-to-transmit-at-100hz-with-nrf51822</link><description>I&amp;#39;ve created 2 custom PCB boards, 1 main board and 1 dongle based on the nF51822. The Dongle board uses the default ble_app_uart_c code. The main board transmits to the Dongle board every 8ms (it is a ble_nus_string_send() call controlled by the APP_TIMER</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Mar 2018 18:05:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30850/unable-to-transmit-at-100hz-with-nrf51822" /><item><title>RE: Unable to transmit at 100Hz with nRF51822</title><link>https://devzone.nordicsemi.com/thread/122509?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 18:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cab57426-11cd-4da6-aced-717922dc0fa7</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suspect this has changed a between SoftDevice versions, but I suspect the event you should be looking for is of type &amp;quot;BLE_GATTS_EVT_WRITE&amp;quot;. Check the switch&amp;nbsp;statement in the function &amp;quot;ble_nus_on_ble_evt&amp;quot; and you can see how it is handled internally by the NUS module.&lt;/p&gt;
&lt;p&gt;If memory serves&amp;nbsp;BLE_EVT_TX_COMPLETE relates to L2CAP packets which&amp;nbsp;is not how you are transmitting packets.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to transmit at 100Hz with nRF51822</title><link>https://devzone.nordicsemi.com/thread/122190?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 18:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec2eddb-ea6a-4963-a68f-beb80c977084</guid><dc:creator>Abhishek Satish</dc:creator><description>&lt;p&gt;Thanks for the reply! I&amp;#39;m actually doing an nRF51822 to nRF51822 connection. But I&amp;#39;ll still try checking this out!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to transmit at 100Hz with nRF51822</title><link>https://devzone.nordicsemi.com/thread/122189?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 18:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a258f5-4e7f-4c97-8c63-185388a3793d</guid><dc:creator>Abhishek Satish</dc:creator><description>&lt;p&gt;Hi there! Thanks for the reply. How do I listen to these packet sent events on NUS? I tried listening for the BLE_EVT_TX_COMPLETE and then sent a packet everytime that triggered. But it didn&amp;#39;t work. It never really triggered. Any suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to transmit at 100Hz with nRF51822</title><link>https://devzone.nordicsemi.com/thread/121997?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 16:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b02c19b-60de-48bb-a707-6e45e6da4aad</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;I strongly recommend checking the &lt;em&gt;actual&lt;/em&gt; numbers in connection events (connect / conn param update). Android, for example, uses a 15ms interval which would roughly fit your 60Hz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to transmit at 100Hz with nRF51822</title><link>https://devzone.nordicsemi.com/thread/121989?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 16:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e747d1cc-4dcb-4423-9302-3308e4c20c04</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF51822 is capable of running a BLE with an interval of 7.5ms. For some reason, your system is not running at this max frequency.&lt;/p&gt;
&lt;p&gt;The first thing I would do to debug this is temporarily removing the code you have for queuing data and adding a short code snippet which queues a packet for sending every time a packet is sent (listen to SoftDevice events and queue packets). This is simply to make sure that there is constant data to send and then you should be able to see if the problem is in the configuration of the Bluetooth link or in the way your implementation give data to the SoftDevice.&lt;/p&gt;
&lt;p&gt;Another solution which can be very effective to debug this is to run a sniffer like the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF-Sniffer/nRF-Sniffer-v2/65225"&gt;nRF sniffer 2.0 beta&lt;/a&gt;&amp;nbsp;and see what connection parameters the devices are actually using. I suspect that you are either sending about half your packets empty or that the connection parameters are wrong. Feel free to share a sniffer log with me if you need help analyzing it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>