<?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>Merge ble_app_interactive with NUS in SDK17.0.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87368/merge-ble_app_interactive-with-nus-in-sdk17-0-2</link><description>Hello, 
 
 I am working on nRF52840 DK and dongle. I am trying to implement a firmware that can scan device and send command through NUS. So I use ble_app_interactive example as my starting point. 
 The firmware should work like this: scan on-&amp;gt;connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Apr 2022 17:58:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87368/merge-ble_app_interactive-with-nus-in-sdk17-0-2" /><item><title>RE: Merge ble_app_interactive with NUS in SDK17.0.2</title><link>https://devzone.nordicsemi.com/thread/365639?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2022 17:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1191c0f9-5496-464f-a8b8-930591145ba3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think it makes sense to add some additional commands to support the additional functionality that you want to add to the example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you take a look at the cli_m.c file in the project you can see how the existing Bluetooth commands are set up, and you can use a similar method to add new commands to access the NUS service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge ble_app_interactive with NUS in SDK17.0.2</title><link>https://devzone.nordicsemi.com/thread/365498?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2022 02:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90442c35-6e71-418b-9be4-5c528fc00c8d</guid><dc:creator>Lyle Chen</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help. Now it works normally. But still can&amp;#39;t send command to device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Should I add a new command to send command or I can just modify something to send command?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1651200157161v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is the code I modified.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/file/d/1mdK6HvJLlpdIXQoDK4drE_PgsyqGmMnv/view?usp=sharing"&gt;ble_m.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge ble_app_interactive with NUS in SDK17.0.2</title><link>https://devzone.nordicsemi.com/thread/365370?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 10:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b664556a-0cbd-4da4-a54a-105cd8ca4227</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to run the debugger when the issue occurs?&lt;/p&gt;
&lt;p&gt;Then you should be able to see what part of the code is triggering the error, and also which error code is returned (which can help us figure out the problem).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One thing you can check is what the value of the&amp;nbsp;NRF_SDH_BLE_VS_UUID_COUNT define in sdk_config.h is set to. This has to be set to 1 or higher for the NUS service to work, since the NUS service requires a 128-bit base UUID (also referred to as vendor specific UUID).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>