<?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>Why delay make ble_nus_string_send() totally not working?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15736/why-delay-make-ble_nus_string_send-totally-not-working</link><description>A beginner&amp;#39;s question. 
 I am using UART over BLE to send data out. 
 As codes below, ble_nus_string_send() works and continuously sending data out, with the Wireshark&amp;#39;s help, I can see notification packet are always sending out. 
 when I was trying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Aug 2016 12:33:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15736/why-delay-make-ble_nus_string_send-totally-not-working" /><item><title>RE: Why delay make ble_nus_string_send() totally not working?</title><link>https://devzone.nordicsemi.com/thread/60077?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2016 12:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2da588d8-1e15-4716-b73f-fd9c42c990c0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;When you call sd_app_evt_wait() in power_manage() you will wait for events from the SoftDevice, you will not be running in the for loop. The counter will only increase when you events from the SoftDevice. If you (after you are connected) put a breakpoint at ble_nus_string_send() inside the if you will see that you never hit it. If you comment out power_manager(), you can see that notifications are sent all the time.&lt;/p&gt;
&lt;p&gt;ble_nus_string_send() outside the if will be called because when the notification is sent you will receive the BLE_EVT_TX_COMPLETE event, which will trigger a new call to ble_nus_string_send().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why delay make ble_nus_string_send() totally not working?</title><link>https://devzone.nordicsemi.com/thread/60074?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 16:30:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db69017d-7008-4d61-8201-94a3b46a08be</guid><dc:creator>shalongbasi1</dc:creator><description>&lt;p&gt;project files are uploaded, softdevice is also in it, but I did not find the SDK version. I will try to get the error code later. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why delay make ble_nus_string_send() totally not working?</title><link>https://devzone.nordicsemi.com/thread/60076?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 06:36:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a1eed01-9541-43ec-a964-06fd31ecec9b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Also use the debugger to check the returned error code of ble_nus_string_send(). Remember to turn off optimizations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why delay make ble_nus_string_send() totally not working?</title><link>https://devzone.nordicsemi.com/thread/60075?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 06:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c82e07-dec7-4b37-b160-4ac932bf24ad</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Edit your question and click the paper clip button. It says attachment. Zip your complete project folder, ble_app_uart, and attach it. What SDK are you using? Check release_notes.txt in \documentation&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why delay make ble_nus_string_send() totally not working?</title><link>https://devzone.nordicsemi.com/thread/60073?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 02:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6934a505-aa12-40c9-bb99-bab723995d52</guid><dc:creator>shalongbasi1</dc:creator><description>&lt;p&gt;sorry, but I am not sure how to upload the whole project files here.&lt;/p&gt;
&lt;p&gt;the project is based on demo project ble_sdk_uart_over_ble, soft device is s130_nrf51_1.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why delay make ble_nus_string_send() totally not working?</title><link>https://devzone.nordicsemi.com/thread/60072?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 09:01:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bb674f9-9b38-4347-acfc-cab281137f6b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Can you check the returned error code of ble_nus_string_send()? Is it NRF_SUCCESS (0x00000000)? I can also test you code here, if you edit your question and upload the complete project, and includes what SoftDevice and SDK version you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>