<?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>Custom BLE code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62326/custom-ble-code</link><description>I followed the custom BLE tutorial and got the output. 
 
 1. The result increments till 19 , but after that the value 20 is appended with extra character. May i know the reason behind this? 
 
 
 2. How the change the name of &amp;quot;Unknown Service&amp;quot; and &amp;quot;Unknown</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Aug 2020 08:06:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62326/custom-ble-code" /><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/265898?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 08:06:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff4d0e62-0351-4fe9-bb99-b419ad0cbb29</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;HW looks OK with regard to the LF crystal. I see you get a Fatal error, but it is not clear to mere from where it comes, though from the screenshot I assume sd_softdevice_enable(). Can you clarify? What is the return value?&amp;nbsp;You could get it by inspecting the ret_code variable in the debugger or by enabling debug logging (select &amp;quot;Debug&amp;quot; from the build configuration dropdown). In that case, you should get more information than just Fatal error (filename, line number, and error code).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/265805?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 14:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80e21036-2a1f-4a9f-96a8-a473b263a929</guid><dc:creator>Nats</dc:creator><description>&lt;p&gt;Thank you, i have used a crystal oscillator.&amp;nbsp;&lt;br /&gt;&lt;a href="https://uk.rs-online.com/web/p/crystal-units/7293296/"&gt;https://uk.rs-online.com/web/p/crystal-units/7293296/&lt;/a&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;table width="162"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="162"&gt;344-NX3225SA32MHZEXS&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://www.mouser.de/ProductDetail/NDK/NX3225SA-32MHZ-EXS00A-CS02368?qs=55YtniHzbhCu90OOsHDzwg=="&gt;https://www.mouser.de/ProductDetail/NDK/NX3225SA-32MHZ-EXS00A-CS02368?qs=55YtniHzbhCu90OOsHDzwg==&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The schematic as below&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Schematic-Prints.PDF"&gt;devzone.nordicsemi.com/.../Schematic-Prints.PDF&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But i also tried the option you gave, and i get the below result&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1598018720602v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;after the below instruction&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1598018758431v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/265770?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 12:15:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0211f8-0233-4575-bcbc-fc9cf0cb78d9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The typical reason for sd_softdevice_enable() not returning is if your custom board does not have a 32.768 kHz crystal but your firmware is configured to use it. In that case, the SoftDevice will wait for the oscillator to start up, which it never will if the crystal is not present. To fix this, you should configure the SoftDevice to use the internal LFRC oscillator instead, as explained in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29260/sd_softdevice_enable-not-return/116388#116388"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/265728?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 10:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b625d8f-2e25-4875-8e82-3f6f86f6fbe3</guid><dc:creator>Nats</dc:creator><description>&lt;p&gt;Dear Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have built a custom board with nrf52832 and im trying to run the ble_App_blinky example, and its getting stuck at ble_stack_init. Im using the software settings of PCA10040 board. WHat could be the reason?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1598005527284v1.png" alt=" " /&gt;Its getting stuck at this instruction&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/254796?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 17:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f8ea650-c610-4f5c-aef4-bcba7de8f7aa</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. It looks like a minor bug in nRF Connect for Android, then. I will try to get hold of one on Monday to verify.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/254727?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 12:32:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d2c5a34-e2bb-44b5-ac23-95d8b3f79c6d</guid><dc:creator>Nats</dc:creator><description>&lt;p&gt;i am able to read, it appears on the notification, just not in the front view.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/254719?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 12:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:146098ac-4b07-4649-821b-89ab53837f8e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is nothing wrong with the code in your project (though I had to adjust the linker configuration a bit by moving the start address when using your project with SDK 15.3). Without changing any code I am able to read the value of all there characteristics. I am not able to test with Android though since I only have an iOS device at hand. Could it be as simple as that you forgot to press the read button (downwards arrow) for the third characteristic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/254536?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 14:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af247a2f-a346-440e-9eaf-0eea14a06c80</guid><dc:creator>Nats</dc:creator><description>&lt;p&gt;Hey Einar,&lt;/p&gt;
&lt;p&gt;Attached is the project.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3-characteristics-addition.zip"&gt;devzone.nordicsemi.com/.../3-characteristics-addition.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/254505?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 13:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e3727d-5313-4f3f-b477-0d108388d976</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Nagashree"]&amp;nbsp; &amp;nbsp; &amp;nbsp; In the Q3.b&amp;nbsp; image, The VALUE of the first characteristic is 0x0F, and second characteristic is 0x0A. But I cannot view&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; the third one.&amp;nbsp;[/quote]
&lt;p&gt;Yes, I see that now. It looks a bit odd. Are you sure there is a value? Can you share the code from your nRF implementation so that we can see how this characteristic is configured?&lt;/p&gt;
[quote user="Nagashree"]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Q5. Can you guide me regarding the &amp;quot;configure GATT server&amp;quot;, option present?&amp;nbsp; how to configure it?&amp;nbsp;[/quote]
&lt;p&gt;In the nRF Connect Android app you can ad either a custom service where you specify name and UUID, or a standard service where the UUID is set automatically. And as stated in the app: &amp;quot;With a custom service, you&amp;#39;ll be able to manually set characteristic and descriptors data and send notifications.&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/254418?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 09:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d23dd874-8ed3-48d8-a501-d0f6c4279174</guid><dc:creator>Nats</dc:creator><description>&lt;p&gt;Thank you so much&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&amp;nbsp;for your answers.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the Q3.b&amp;nbsp; image, The VALUE of the first characteristic is 0x0F, and second characteristic is 0x0A. But I cannot view&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; the third one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Q5. Can you guide me regarding the &amp;quot;configure GATT server&amp;quot;, option present?&amp;nbsp; how to configure it?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/254042?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 12:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff07ca74-eac8-4eeb-8c81-c9b99dddf074</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1.&amp;nbsp; The result increments till 19 , but after that the value 20 is appended with extra character. May i know the reason behind this?[/quote]
&lt;p&gt;As explained by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sunil-vignesh"&gt;Sunil vignesh&lt;/a&gt;, this is just a matter of how it is displayed in the log. When the value is a valid ASCII value, it is displayed as that as well in the log. There is no additional character.&lt;/p&gt;
[quote user=""]2.&amp;nbsp; How the change the name of &amp;quot;Unknown Service&amp;quot; and &amp;quot;Unknown characteristics&amp;quot; to a specific names?[/quote]
&lt;p&gt;There is no way to add a name to a service, so this is just interpreted by the nRF Connect app. Since it does not know which service it is, it shows it like that.&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; I tried to extend the code to add more characteristics to the same service,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; a. when i added the second characteristics, even if i enable the notifications, i cannot see the value on the front page. But i see the notifications.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Where is the value missing? Please elaborate.&lt;/p&gt;
[quote user=""]4.&amp;nbsp; Is it possible to have one notification for all 3 characteristics? If so, what needs to be corrected.[/quote]
&lt;p&gt;Yes. I cannot say without knowing more. Can you show you configure the characteristics on the nRF side as well as show it from nRF Connect?&lt;/p&gt;
[quote user=""]Is there any reference that shows how to use the nordic connect app for android? To configure GATT server.&amp;nbsp;[/quote]
&lt;p&gt;I do not believe there is any documentation for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE code</title><link>https://devzone.nordicsemi.com/thread/253929?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 06:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dacc36b0-8bf9-4151-b3e6-7cae3abfc820</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;check this &lt;a href="http://www.asciitable.com/"&gt;http://www.asciitable.com/&lt;/a&gt; . it shows the &amp;quot;char&amp;quot; value&lt;/p&gt;
&lt;p&gt;if you read hex value and you have to convert to the respective integer or your data type or else it will show&amp;nbsp; char value&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>