<?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>Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91712/sending-data-over-bluetooth-to-a-peripheral-uart</link><description>Greetings Nordic Team, 
 I am trying to pass data from an application on a dk-nrf52840 to a nrf52840-dongle whose uart is connected to the uart on a microcontroller. Using the example programs for central_uart and peripheral_uart in nrf connect desktop</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Nov 2022 09:46:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91712/sending-data-over-bluetooth-to-a-peripheral-uart" /><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/397810?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 09:46:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f5bfc73-a328-4fb5-b596-b1696d5c184c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Great, I&amp;#39;m glad to hear that! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/397715?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 16:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00ce7969-0fbf-4fdd-ac91-afe88b3ac8db</guid><dc:creator>Oli</dc:creator><description>&lt;p&gt;Thank you very much, Karl! This clears things up.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/397608?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 11:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fabaecb-3bfc-4050-a058-7a9da87815f4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Oli and Jim&lt;br /&gt;&lt;br /&gt;I am glad that you have it working now! :)&amp;nbsp;&lt;br /&gt;There are no implications of removing this, since you have changed the source of the data away from the UART peripheral.&lt;br /&gt;&lt;br /&gt;I have taken a closer look at this, and it turns out that the issue you are facing stems for the modification where you are sending data from another source than the UART.&lt;br /&gt;In essence, the example expects the sent data to have been dynamically allocated, and so it must be freed once the transmission is completed.&lt;br /&gt;However, when you modify the example to send data from another source than the UART this is not necessarily the case anymore, and so it breaks.&lt;br /&gt;&lt;br /&gt;I have reported this internally to our developers so that they can review and change this, so that it does not break so easily. &lt;br /&gt;&lt;br /&gt;Thank you both for bringing our attention to this! :)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/397290?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 00:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a773bc77-ec67-409d-a12a-f1a08d26246a</guid><dc:creator>Jim Ellyson</dc:creator><description>&lt;p&gt;Greetings Oli,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s it! That resolved my issue as well. Thank you.&lt;/p&gt;
&lt;p&gt;Karl, I don&amp;#39;t know if you have anything to add, but consider this case solved and closed.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/397285?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 22:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6cfd416-0619-44b0-86c4-44228eab39b1</guid><dc:creator>Oli</dc:creator><description>&lt;p&gt;Hi Jim,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the response. I think I just found the answer to the errors that you and I had. I found it in this issue:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/88994/central-node-crashes-just-after-sending-data"&gt;Central node crashes just after sending data&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried it and it does not crash anymore. I don&amp;#39;t know if there would be implications in removing this part of the code. Probably &lt;a href="https://devzone.nordicsemi.com/members/karl-ylvisaker"&gt;Karl Ylvisaker&lt;/a&gt;&amp;nbsp;would be able to shed some light.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;oli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/397284?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 22:10:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f577e3e-c3c7-42c6-b71f-205866dfaaed</guid><dc:creator>Jim Ellyson</dc:creator><description>&lt;p&gt;Greetings Oli and Karl,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, for the slow response. I have been having issues trying to log into this site the past few weeks and not getting a response from nordic with password reset.&lt;/p&gt;
&lt;p&gt;Seems to be working great now(the login). Karl, hope you enjoyed your vacation.&lt;/p&gt;
&lt;p&gt;I have not resolved issue with the central_uart example using bl_nus_client_send() function in the nRF Connect for Desktop. It just reboots right after sending.&lt;/p&gt;
&lt;p&gt;As a workaround:&lt;/p&gt;
&lt;p&gt;Currently I&amp;#39;m using the nRF5 SDK example ble_app_uart_c which uses the function ble_nus_c_string_send(). That works fine. And I have been developing my project around those examples.&lt;/p&gt;
&lt;p&gt;It would be nice to be able to use the newer examples and the newer developer framework.&lt;/p&gt;
&lt;p&gt;To answer an earlier question, no, Karl I didn&amp;#39;t change anything in the sample code except for the snipet I posted.&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/397098?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 09:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0acaf247-040c-4778-9778-ed7d544548c9</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Oli,&lt;br /&gt;&lt;br /&gt;In the case that Jim does not reply to this I would recommend that you create a separate ticket for your issue so that you can elaborate on what you are trying to achieve, the changes you have made, and the errors you are encountering.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/397049?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 05:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d63778e-62a8-467e-9a98-7b7057c4c8f6</guid><dc:creator>Oli</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/jim-ellyson"&gt;Jim Ellyson&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;How did you resolve this issue?&lt;/p&gt;
&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/karl-ylvisaker"&gt;Karl,&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also get the same error when I tried to modify the code for the central_uart to send command. What is the fix for the errors?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;oli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/390851?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 19:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bd28f93-0eb0-44da-891e-23e02c08bb68</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, jim-ellyson&lt;br /&gt;&lt;br /&gt;Thank you for your extreme patience with this. I have been out of office for some time, but now I am back.&lt;br /&gt;&lt;br /&gt;Do you still require technical support with this issue?&lt;br /&gt;&lt;br /&gt;To round off the remaining questions from the previous comment:&lt;/p&gt;
[quote user="Jim Ellyson"]I can just put in a delay to wait a few seconds and then start sending data.&lt;br /&gt;Now the data is sent to and received by peripheral.&lt;br /&gt;Is there a function to test for connectedness?[/quote]
&lt;p&gt;Yes, you can use the connection handle, for instance, to see this - I would recommend this approach rather than waiting for an arbitrary number of seconds, since the connection can take longer for many different reasons.&lt;/p&gt;
[quote user="Jim Ellyson"]However, as soon as the data is transmitted over to the peripheral, the&lt;br /&gt;central unit generates an error causing it to restart. &lt;br /&gt;Can you tell me what might cause this?[/quote]
&lt;p&gt;It seems to me that it never makes it to the code you have included, could you post more of the relevant code?&lt;br /&gt;Is the shown lines the only modification you&amp;#39;ve made to the default central_uart code?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/385578?ContentTypeID=1</link><pubDate>Sat, 10 Sep 2022 01:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9da559a-8939-4dea-87ee-ed3c2fb16a9e</guid><dc:creator>Jim Ellyson</dc:creator><description>&lt;p&gt;Greetings Karl,&lt;/p&gt;
&lt;p&gt;There is no arguing that the do while loop is bad form, but for debugging,&lt;br /&gt;it did reveal that it takes a second for the physical connection to complete.&lt;br /&gt;I can just put in a delay to wait a few seconds and then start sending data.&lt;br /&gt;Now the data is sent to and received by peripheral.&lt;br /&gt;Is there a function to test for connectedness?&lt;br /&gt;However, as soon as the data is transmitted over to the peripheral, the&lt;br /&gt;central unit generates an error causing it to restart. &lt;br /&gt;Can you tell me what might cause this?&lt;/p&gt;
&lt;p&gt;//my code inserted in the central_uart example just before infinite for loop&lt;br /&gt;char internal_data[UART_BUF_SIZE]={&amp;quot;Jim was here.&amp;quot;};&lt;br /&gt;uint16_t length = sizeof(internal_data);&lt;br /&gt;nrf_delay_ms(5000);&lt;br /&gt;printf(&amp;quot;\n\rSending %s to nRF52840 dongle&amp;quot;,internal_data);&lt;/p&gt;
&lt;p&gt;err = bt_nus_client_send(&amp;amp;nus_client, internal_data, length);&lt;br /&gt; if (err) {&lt;br /&gt; LOG_WRN(&amp;quot;Initial Error# %d&amp;quot;, err);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;//Debug Terminal Output&lt;br /&gt;&amp;lt;inf&amp;gt;[00:00:00.006,958] [0m&amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fb8&lt;br /&gt;&amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 88&lt;br /&gt;&amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: &lt;br /&gt; 0e e7 c5 66 67 18 3c ac b3 d2 cc 81 a3 dc f1 c0 |...fg.&amp;lt;. ........&lt;br /&gt; c0 36 02 22 |.6.&amp;quot; &lt;br /&gt;&amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: Bluetooth initialized&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: Scan module initialized&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: NUS Client module initialized&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: Filters matched. Address: DF:FE:3E:E2:44:AE (random) connectable: 0&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: Connected: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: Security changed: DF:FE:3E:E2:44:AE (random) level 2&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: MTU exchange done&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: Service discovery completed&lt;/p&gt;
&lt;p&gt;&amp;lt;err&amp;gt; os: r0/a1: 0x00000004 r1/a2: 0x00000081 r2/a3: 0x00000001&lt;br /&gt;&amp;lt;err&amp;gt; os: r3/a4: 0x000202ad r12/ip: 0x00000000 r14/lr: 0x00023f7b&lt;br /&gt;&amp;lt;err&amp;gt; os: xpsr: 0x41000000&lt;br /&gt;&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0002a854&lt;br /&gt;&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0&lt;br /&gt;&amp;lt;err&amp;gt; os: Current thread: 0x20001a20 (unknown)&lt;br /&gt;&amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/385401?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 00:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c61c759a-7ada-4104-b407-39f05fe2f5b8</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Jim Ellyson"]&lt;strong&gt;Thank you for your timely response.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Thank you for showing a link to all error codes.&lt;/strong&gt;[/quote]
&lt;p&gt;No problem at all, I am happy to help! :)&amp;nbsp;&lt;/p&gt;
[quote user="Jim Ellyson"]If I force the issue by changing my code to:[/quote]
&lt;p&gt;The best approach here depends on the requirements and constraint of your application - i.e if it is just &amp;#39;spewing&amp;#39; sensor data, and it is not important if some data is lost, or if every piece of data needs to get across the link so long as the link is active. In case of the latter you should instead make sure that you are in a connection before you start sending data, and implement a ring-buffer for storage of any data that is not successfully queued for transmission (whenever the call to bt_nus_client_send fails, for whatever reason) to avoid this data being lost.&lt;br /&gt;In case of the former, you are a lot more free with regards to the approach, and you could basically just ignore the failure and move on to the next sample.&lt;br /&gt;&lt;br /&gt;The issue with your currently implementation is that your device immediately will get stuck in this infinite while-loop, because there is no telling when you will actually enter into a connection. This is why I would not recommend using a while loop for this, since the bt_nus_client_send can start failing at any time, such as if the connection is suddenly terminated by the peer.&lt;br /&gt;If you are to keep the current setup I would at the very least add specific error handling, i.e make the different handling specific to the different errors that you expect could be returned. In this case, the handling for the -128 error code could for example be to buffer the attempted data (if necessary) and then stop re-trying to send (since you know this will continue to fail so long as you are not in a connection anymore).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/385122?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 21:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5909cfd2-f3e3-4e49-a231-d9ec15e40cc7</guid><dc:creator>Jim Ellyson</dc:creator><description>&lt;p&gt;&lt;strong&gt;Greetings Karl,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thank you for your timely response.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Thank you for showing a link to all error codes.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;If I force the issue by changing my code to:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;char internal_data[UART_BUF_SIZE]={&amp;quot;Jim was here.\r\n&amp;quot;};&lt;br /&gt;uint16_t length = sizeof(internal_data);&lt;br /&gt;printf(&amp;quot;Sending %s to dongle\n\r&amp;quot;,internal_data);&lt;br /&gt; do{&lt;br /&gt; err = bt_nus_client_send(&amp;amp;nus_client, internal_data, length);&lt;br /&gt; if (err) {&lt;br /&gt; LOG_WRN(&amp;quot;Initial Error# %d&amp;quot;, err);&lt;br /&gt; err = bt_nus_client_send(&amp;amp;nus_client, internal_data, length);&lt;br /&gt; LOG_WRN(&amp;quot;2nd Error# %d&amp;quot;, err);&lt;br /&gt; }&lt;br /&gt; }while(err);&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I get the following in the debug terminal (this repeats).&lt;/strong&gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: Initial Error# -128&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: 2nd Error# -128&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: Initial Error# -128&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: 2nd Error# -128&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: Initial Error# -128&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: 2nd Error# -128&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: Initial Error# -128&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: 2nd Error# -128&lt;br /&gt;&amp;lt;inf&amp;gt; central_uart: Service discovery completed&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: Initial Error# -128&lt;br /&gt;&amp;lt;wrn&amp;gt; central_uart: 2nd Error# 0&lt;br /&gt;&amp;lt;err&amp;gt; os: r0/a1: 0x00000004 r1/a2: 0x00000081 r2/a3: 0x00000001&lt;br /&gt;&amp;lt;err&amp;gt; os: r3/a4: 0x00020259 r12/ip: 0x00000000 r14/lr: 0x00023f27&lt;br /&gt;&amp;lt;err&amp;gt; os: xpsr: 0x41000000&lt;br /&gt;&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0002a800&lt;br /&gt;&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0&lt;br /&gt;&amp;lt;err&amp;gt; os: Current thread: 0x20001a20 (unknown)&lt;br /&gt;&amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;So it appears my function gets executed before bluetooth initialization is &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;finished. I could work with that. &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;The data does get sent to and received by the peripheral&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;dongle. YAY!!!&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;But then I get a self destruct error causing the system to reset/reboot.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This is the message I get on the central device console.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Starting Bluetooth Central UART example&lt;br /&gt;Sending Jim was here. to dongle&lt;/p&gt;
&lt;p&gt;ASSERTION FAIL [z_spin_lock_valid(l)] @ WEST_TOPDIR/zephyr/include/spinlock.h:129&lt;br /&gt; Recursive spinlock 0x1079d&lt;br /&gt;Starting Bluetooth Central UART example&lt;br /&gt;Sending Jim was here. to dongle&lt;/p&gt;
&lt;p&gt;ASSERTION FAIL [z_spin_lock_valid(l)] @ WEST_TOPDIR/zephyr/include/spinlock.h:129&lt;br /&gt; Recursive spinlock 0x1079d&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And the cycle repeats ad infinitum.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Any suggestions for avoiding a fatal error?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data over bluetooth to a peripheral UART</title><link>https://devzone.nordicsemi.com/thread/384884?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 01:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:928824c6-b8af-49cf-86b5-0a9d24673beb</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/lib/libc/minimal/include/errno.h"&gt;Error -128 is the NOT CONNECTED error&lt;/a&gt;, which is expected to be returned if you attempt to use the bt_nus_client_send function when you are not in a connection. Could you make sure that you are in a connection when you attempt to send the data, or implement a local error handling routine to handle this specific error?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>