<?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>stability in the &amp;quot;UART&amp;quot; communication over BLE.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6222/stability-in-the-uart-communication-over-ble</link><description>Hi
I have a serious problem with stability in &amp;quot;UART&amp;quot; communication over BLE.
I use the command:
err_code = ble_nus_send_string(&amp;amp;m_nus, &amp;amp;bleBuffer, 20);
where I send 20 bytes from bleBuffer.
the err-code returned is 12292 = 0x3004.
As I read it,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jan 2016 16:14:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6222/stability-in-the-uart-communication-over-ble" /><item><title>RE: stability in the "UART" communication over BLE.</title><link>https://devzone.nordicsemi.com/thread/21786?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 16:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:224613ba-7c5f-49a0-ae5e-e0b3eb810bf1</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;ok, happy to help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stability in the "UART" communication over BLE.</title><link>https://devzone.nordicsemi.com/thread/21785?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 00:12:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00443aba-9878-4f45-9253-0c527578db6e</guid><dc:creator>JudePinto</dc:creator><description>&lt;p&gt;Hi Carles, thank  you for the comment about BLE_EVT_TX_COMPLETE. I am getting the 0x3004 error and I believe this is what I needed to know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stability in the "UART" communication over BLE.</title><link>https://devzone.nordicsemi.com/thread/21784?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 14:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f39ce0ff-e98d-4442-9c11-f2d71fd8924e</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re getting 0x3004 as an error code, then the actual error you&amp;#39;re getting is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BLE_ERROR_NO_TX_BUFFERS          (NRF_ERROR_STK_BASE_NUM+0x004) /**&amp;lt; Buffer capacity exceeded. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That error happens when you try to queue more data for transmission than the stack can buffer. You will need to wait for an BLE_EVT_TX_COMPLETE event before you transmit more if you want to avoid getting this error.&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stability in the "UART" communication over BLE.</title><link>https://devzone.nordicsemi.com/thread/21782?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 13:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ceb71e-4db1-4dfe-90e8-286850730a25</guid><dc:creator>bka</dc:creator><description>&lt;p&gt;Hi
I checked in my code for sd enabled as:
err_code = sd_softdevice_is_enabled(&amp;amp;chk);
if(chk == 1){
err_code = ble_nus_send_string(&amp;amp;m_nus, &amp;amp;bleBuffer[0], 20);
else{
&amp;quot;kick sd on again&amp;quot; - How is that done?
}
I observe, that chk = 1 (SD enabled), but err_code = 0x3004 - indicating that SD is disabled?????&lt;/p&gt;
&lt;p&gt;best regards
Benni&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stability in the "UART" communication over BLE.</title><link>https://devzone.nordicsemi.com/thread/21783?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 12:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1edaca12-f51f-483a-a854-e1249b88baab</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you check using a breakpoint at this error and see that the softdevice is still enabled.
This error is very straight forward and is checked just before the entry into the softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>