<?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>Does the NUS really use the UART hardware?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124187/does-the-nus-really-use-the-uart-hardware</link><description>I am a bit confused by the name and example use cases of &amp;#39;NUS&amp;#39;. 
 The name is &amp;#39;Nordic UART service&amp;#39; and it is often described as &amp;quot;A Serial UART interface over BLE&amp;quot; that is provided as a service. 
 In my application, I am calling the function &amp;#39;ble_nus_data_send</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Sep 2025 01:22:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124187/does-the-nus-really-use-the-uart-hardware" /><item><title>RE: Does the NUS really use the UART hardware?</title><link>https://devzone.nordicsemi.com/thread/548296?ContentTypeID=1</link><pubDate>Wed, 10 Sep 2025 01:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:704dfb94-2b29-41d6-b4b1-ae278210b1b4</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Thanks. I was thinking the same and you just confirmed it for me. &lt;/p&gt;
&lt;p&gt;FYI, the buffer overrun was likely because I was doing some heavy lifting within the NUS IRQ handler. Once I moved that to a background task, we are no longer running into the resource errors at a rate that throttles our transfer.&lt;/p&gt;
&lt;p&gt;Will mark this as an answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the NUS really use the UART hardware?</title><link>https://devzone.nordicsemi.com/thread/547837?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 06:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a8be30b-3cb2-4912-b151-5ee19cc57028</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ble_nus_data_send()&amp;nbsp;will let you send any arbitrary data over BLE and does not care if the data originates from a physical UART interface or another source. But the service was made to emulate a UART interface over BLE, so&amp;nbsp;if you advertise support for it in your advertising payload&amp;nbsp;it might result in unexpected connection requests. So if you don’t plan to use it for&amp;nbsp;UART emulation over BLE,&amp;nbsp;I would&amp;nbsp;recommended that you&amp;nbsp;create a new UUID to replace the NUS UUIDs in nus.c/nus.h&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/nrf/libraries/bluetooth/services/nus.html"&gt;Nordic UART Service (NUS)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]I am trying to understand why when I call this function with a large number of bytes then I keep getting error indications that there are no &amp;#39;RESOURCES&amp;#39; available. Searching for similar issues on the devzone almost invariably highlights solutions that one way or another refer to a &amp;#39;UART&amp;#39; interface.[/quote]
&lt;p&gt;The resource error is returned when you have filled up the Softdevice&amp;#39;s tx buffer:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1757053452814v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;(ref. &lt;a href="https://docs.nordicsemi.com/bundle/s140_v7.2.0_api/page/group_b_l_e_g_a_t_t_s_f_u_n_c_t_i_o_n_s.html#ga313fe43c2e93267da668572e885945db"&gt;sd_ble_gatts_hvx()&lt;/a&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>