<?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>Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30691/example-apps-do-not-line-up-with-the-documentation</link><description>The developer kit is impressive, and I was able to get a test app running quickly using the UART thru the USB connection. However, the example BLE apps feel a great deal like I&amp;#39;m trying to hack my way thru some downloaded garage-shop freeware. I am able</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Mar 2018 09:29:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30691/example-apps-do-not-line-up-with-the-documentation" /><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/124721?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 09:29:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3a0c5a7-149a-40f5-80f6-1871b99c88dc</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Ok, I don&amp;#39;t know who you were talking to, but I&amp;#39;m glad you were able to solve the issue.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry I wasn&amp;#39;t able to help you, but I will forward your concern regarding the documentation.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/124633?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 16:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fb65ef3-0201-4835-9b71-fb5f2b858196</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I spent about two hours on the phone with tech support Monday and they duplicated exactly the issues I was having. They were able to work thru it with me, and the immediate bonding issue is apparently resolved. The original subject line still stands, however. You may close this ticket, and work to have the documentation improved as pertains to bonding and what it takes to actually erase the bonding information in the dev kit, which i asked you about several weeks ago.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/124629?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 15:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebc25b82-f9fc-4373-a345-8f61e006c211</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Could you try using another example from our SDK, i.e the ble_app_hrs, and see if you get the same error?&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I do when testing the CGMS example:&lt;/p&gt;
&lt;p&gt;1. I erase my nRF52-DK using nRFgo Studio, because simply re-flashing the example might not erase any encryption keys present.&lt;/p&gt;
&lt;p&gt;2. I erase any bond information in nRF Connect.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5b0839d876e04f58b66ba13af9decaee/bondingdelete.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;3. I flash the pre-compiled hex file from the SDK to my nRF52-DK.&lt;/p&gt;
&lt;p&gt;4. When I observe that the DK is advertising, I start the scan in nRF Connect.&lt;/p&gt;
&lt;p&gt;5. Connect to the device advertising as Nordic_CGMS and then pair/bond (see pictures below.)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5b0839d876e04f58b66ba13af9decaee/pair.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5b0839d876e04f58b66ba13af9decaee/bond.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After that, the example works just as expected, and the connection is stable.&lt;/p&gt;
&lt;p&gt;Also, the connection issue you have now, is not that related to the original question. So you could preferrably start a new thread solving this.&lt;/p&gt;
&lt;p&gt;Cheers, &lt;br /&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/124021?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 17:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ca9c38-1de5-4629-8661-5a3ae635401e</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I have now come full-circle. I took your advice to go back to basics, run the example exactly as instructed. Am I using the correct instructions, as shown under Testing back up at the start of this thread? I compile, download, and run a pristine copy of the CGMS app. I start nRF Connect on the PC. In step 2 I am supposed to Bond by starting at the Settings button for the device. There is no such button that I can see. There is a starburst thing on the host device, and when I click it and select &amp;quot;Security parameters&amp;quot;, that seems to open a settings dialog, the only thing I can find that is remotely close, like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1520875791590v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Since I am supposed to be Bonding, I turn on &amp;quot;Perform Bonding&amp;quot; and then &amp;quot;Apply&amp;quot;. By now the CGMS app has timed out from advertising, so I press Button 1 on the dev kit to restart, then click Connect on nRF Connect. That yields&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1520875909447v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can see the error log in nRF Connect in the screenshots. Here is the log captured from the device via the serial port:&lt;/p&gt;
&lt;p&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM starts at 0x20005668, can be adjusted to 0x200020E0.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM size can be adjusted to 0xDF20.&lt;br /&gt;&amp;lt;info&amp;gt; app: Continuous Glucose Monitoring example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Directed advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising with whitelist.&lt;br /&gt;&amp;lt;info&amp;gt; app: Slow advertising with whitelist.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM starts at 0x20005668, can be adjusted to 0x200020E0.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM size can be adjusted to 0xDF20.&lt;br /&gt;&amp;lt;info&amp;gt; app: Continuous Glucose Monitoring example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Directed advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising with whitelist.&lt;br /&gt;&amp;lt;info&amp;gt; app: Slow advertising with whitelist.&lt;/p&gt;
&lt;p&gt;PLEASE just tell me what I&amp;#39;m doing wrong, and why following the instructions to the best of my ability gets me absolutely nowhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/124003?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 16:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c0d79da-c5ba-494b-b00f-e5a341012a20</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;And I&amp;#39;m sorry to keep repeating as well. As I&amp;#39;ve asked before, how do I delete the bonding information in the dev kit, so that I can delete it on both sides and start afresh. According to what you&amp;#39;ve told me and what I&amp;#39;ve observed, just reloading the firmware with a new build does not seem to do it.&lt;/p&gt;
&lt;p&gt;I will switch back to using the desktop version of nRFconnect as you suggest adn see what progress I can make there. But ultimately I need to show the client a reliable way to connect with their iPhone(s).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123991?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 15:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdb30d8c-125d-45d4-ab13-b1b96a48bc49</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi! &lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry that you are having such trouble getting this to work.&lt;br /&gt;&lt;br /&gt;As I said in a previous answer, the; &lt;br /&gt;&lt;em&gt;&amp;lt;info&amp;gt; app: Connected to a previously bonded device.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;lt;info&amp;gt; app: Connected&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;lt;info&amp;gt; app: Failed to secure connection. Disconnecting.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;lt;info&amp;gt; app: Disconnected&lt;/em&gt;&lt;br /&gt;indicates that your device is trying to connect to a previously bonded device. If the bonding information on that&lt;br /&gt;device is deleted, the connection will drop.&lt;br /&gt;If you are following the instructions for the example, step 9 deletes the bond.&lt;br /&gt;When you complete step 9, you will not be able to reconnect until you have deleted the bond information on both the &lt;br /&gt;device and the PC/Phone.&lt;br /&gt;So if you want to connect, and stay connected, please try to erase the bond information on both phone and your device, reconnect, &lt;br /&gt;bond the devices, and do not delete it.&lt;br /&gt;If that doesn&amp;#39;t work, please let me know.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry if I keep repeating myself, but as I said this example works just fine for me.&lt;br /&gt;Also, the instructions are made with reference to the desktop version of nRF Connect, not the phone one. So &lt;br /&gt;some differences there is to be expected.&lt;br /&gt;&lt;br /&gt;Cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123873?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 10:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c73264-9c46-4861-9777-aec9ea6f543f</guid><dc:creator>SteveHx</dc:creator><description>&lt;div&gt;&lt;span style="font-size:medium;"&gt;I am running the unmodified CGMS application, attempting to connect using a Samsug phone. It will always connect, and regardless of whether I I attempt to access any of the characteristics or just let it sit there, it disconnects 5 seconds later. Here is a log as captured on the USB virtual serial port of the dev kit, with two successive attempts to connect:&lt;br /&gt;&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM starts at 0x20005668, can be adjusted to 0x200020E0.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM size can be adjusted to 0xDF20.&lt;br /&gt;&amp;lt;info&amp;gt; app: Continuous Glucose Monitoring example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Directed advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising with whitelist.&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected to a previously bonded device.&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: Failed to secure connection. Disconnecting.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected&lt;br /&gt;&amp;lt;info&amp;gt; app: Directed advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising with whitelist.&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected to a previously bonded device.&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: Failed to secure connection. Disconnecting.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected&lt;br /&gt;&amp;lt;info&amp;gt; app: Directed advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising with whitelist.&lt;br /&gt;&lt;br /&gt;I am well beyond the &amp;quot;jiggle the handle&amp;quot; stage. I need to be able to give my client a specific sequence of instructions that will reliably connect. even better would be to have the app behave like the documentation, and just connect every time.&lt;br /&gt;&lt;br /&gt;Steve Hendrix&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123696?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 13:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32d04452-8499-41fb-b65d-07be8dead2fd</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&amp;quot;knowing that it&amp;#39;s &amp;quot;experimental&amp;quot;, and knowing that such markings usually mean it&amp;#39;s more reliable that the supposed &amp;quot;released&amp;quot; versions&amp;quot;&lt;br /&gt;I think you meant to write less reliable than non-experimental examples?&lt;/p&gt;
&lt;p&gt;As you are down to just this issue, which is not that related to the original question, you could start a new thread that is only focusing on this.&lt;/p&gt;
&lt;p&gt;But it is very hard to tell what is causing these connection issues. Especially since I&amp;#39;m not able to reproduce them myself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you could provide some more information?&lt;br /&gt;If you can provide a sniffer log, that could shed some light on what is happening. &lt;br /&gt;Also, if you made any changes to the code, posting the changes could prove useful.&lt;br /&gt;Your setup, with what device, which phone, software versions, which errors you might be getting and so on.&lt;/p&gt;
&lt;p&gt;You could try to test another example, preferably one that is out of the experimental stage. The HRS example should be a very reliable example you could test.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123502?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 16:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d415bdf-7e65-4342-92db-c68a6932f292</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;Perhaps I should start a fresh thread, as now I&amp;#39;m down to just the Bonding issue (although the documentation still does not line up with what I see on the screen - I&amp;#39;ve learned to work around that).&lt;/p&gt;
&lt;p&gt;I am using the CGMS example, knowing that it&amp;#39;s &amp;quot;experimental&amp;quot;, and knowing that such markings usually mean it&amp;#39;s more reliable that the supposed &amp;quot;released&amp;quot; versions. When it connects, it works great, and streams data all the way from my very low-level analog sensor thru the SAADC thru the BLE stack to an iPhone. But by far the majority of the time, it either refuses to connect, or connects and instantly disconnects, with various complaints about authentication, bonding, etc. I have not been able to see any pattern to when it connects and when it doesn&amp;#39;t. I have tried everything suggested above, deleting the bond information from the phone, reloading the firmware and hence erasing anything that may have been stored on the device, doing both at the same time, etc.. I have chased the error messages down dozens of rabbit holes that get lost in the layers of system calls.&lt;/p&gt;
&lt;p&gt;I just need to be able to load firmware and have the phone be able to connect and stream data. It should not be this hard. What am I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123257?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 13:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:895b5a16-c9bc-4ff9-8b1e-5a1e31f21a0d</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;I&amp;#39;m glad you found that helpful.&lt;/p&gt;
&lt;p&gt;Well, for the most part the it will erase the application before programming, without you having to perform the &amp;quot;erase step&amp;quot; manually. &lt;br /&gt;But if you for any reason would like to erase your device, we do have a windows application called &lt;a href="http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRFgo-Studio/(language)/eng-GB" rel="noopener noreferrer" target="_blank"&gt;nRFgo Studio&lt;/a&gt;. &lt;br /&gt;&amp;quot;nRFgo Studio supports auto detection of Nordic nRFgo motherboard and radio modules. It also support the nRF51 and nRF52 evaluation kits and programming nRF5x devices through SEGGER J-Link&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/00ae.svg" title="Registered"&gt;&amp;#x00ae;&lt;/span&gt;&amp;quot;. You can use that to erase your device or flash hex-files to it. &lt;br /&gt;You can also use &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fnrf5x_command_line_tools%2Fnrf5x_nrfjprogexe.html" rel="noopener noreferrer" target="_blank"&gt;nrfjprog&lt;/a&gt; to acheive the same.&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://infocenter.nordicsemi.com/index.jsp" rel="noopener noreferrer" target="_blank"&gt;infocenter&lt;/a&gt; is worth mentioning, as it contains alot of information about devices, softdevices, SDK&amp;#39;s, examples etc.&lt;/p&gt;
&lt;p&gt;Be sure to let us know if you have any more questions.&lt;/p&gt;
&lt;p&gt;Cheers, &lt;br /&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123232?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 12:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:040458ed-ea01-40cd-a7a3-db6cf9aea737</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;It sounds like you&amp;#39;ve hit the nail very precisely on the head, and I have some reading to do. That&amp;#39;s exactly what I was asking for, some pointers to cut thru the mass of documentation. One remaining unclear item: You mention a need to erase my target board as a separate step from writing the firmware to it. I would expect, based on many dozens of device programmers that I&amp;#39;ve used in the past 4 decades, that the J-link would by default erase before programming, and would require special steps to avoid that erase step. I&amp;#39;m running it from within Visual Studio, which hides most of such details. How would I perform the &amp;quot;erase&amp;quot; step that you describe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123218?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 11:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a20ec5c7-f5b9-4397-a9f1-62516c6eb9ab</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi again.&lt;/p&gt;
[quote user="SteveHx"]I&amp;#39;m not sure either. I can&amp;#39;t find any documentation as to what this &amp;quot;Bond&amp;quot; feature is, what it is good for, how to turn it on or off, etc.[/quote]
&lt;p&gt;Pairing: Devices that are initially connected can exchange encryption keys and encrypt the link. When they have, &lt;br /&gt;the link is secure and they are paired.&lt;br /&gt;&lt;br /&gt;Bonding: Paired devices can be bonded. This means that they store the keys that have already been exchanged when &lt;br /&gt;they paired and use those again the next time they connect.&lt;/p&gt;
&lt;p&gt;This means that when you delete the bond information on just one of the devices, &lt;br /&gt;the other device will try to reconnect using the old bonding information. This will not match the deleted device, &lt;br /&gt;so the connection drops.&lt;/p&gt;
[quote user="SteveHx"]1) How to configure a particular application as to BLE parameters, choice of variables to expose on the BLE interface, options as to those variables (read-only, write-only, etc.)?[/quote]
&lt;p&gt;We do have nRF Connect,&amp;nbsp; where you can change the connection interval and so on. This is not possible on most&lt;br /&gt;phones, because the OS handles that. &lt;br /&gt;I don&amp;#39;t know what it is you want to change, but in general you have to make changes to the code to acheive this. If you tell me more specific what parameters you want to change, I can help you track down the part of the code you will need to change.&lt;/p&gt;
[quote user="SteveHx"]choice of variables to expose on the BLE interface[/quote]
&lt;p&gt;What do you mean by this?&lt;br /&gt;Are you talking about Services and Characteristics?&lt;br /&gt;Or what information that is advertised by your device?&lt;/p&gt;
&lt;p&gt;We have a &lt;a href="https://devzone.nordicsemi.com/tutorials/" rel="noopener noreferrer" target="_blank"&gt;tutorial section&lt;/a&gt; here on devzone that you might want to take a look at.&lt;br /&gt;We have an &lt;a href="https://devzone.nordicsemi.com/tutorials/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial" rel="noopener noreferrer" target="_blank"&gt;advertising&lt;/a&gt;/&lt;a href="https://devzone.nordicsemi.com/tutorials/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial" rel="noopener noreferrer" target="_blank"&gt;service&lt;/a&gt;/&lt;a href="https://devzone.nordicsemi.com/tutorials/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial" rel="noopener noreferrer" target="_blank"&gt;characteristic&lt;/a&gt; tutorial. They were made with reference to SDK 11. But apart from some API changes etc, there is a lot of useful information.&lt;br /&gt;One of my colleagues also have a &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example" rel="noopener noreferrer" target="_blank"&gt;Custom Service Tutorial&lt;/a&gt; on his GitHub, which is compatible with SDK 14.2.0.&lt;/p&gt;
[quote user="SteveHx"]2) How to correct the examples so they will connect reliably with either nRF Connect or with an actual user device?[/quote]
&lt;p&gt;The examples works just as expected when I try it myself. There is no step in the instructions that doesn&amp;#39;t work when I try this.&lt;br /&gt;The connection is consistent, it advertises as expected, connects, bonds and runs just as explained. &lt;/p&gt;
&lt;p&gt;Maybe you could tell me which part of the code you made changes to, if you made any changes?&lt;/p&gt;
[quote user="SteveHx"]Step 1 works. When I connect, I can&amp;#39;t even get to the bonding at step 2, because even my fast fingers can&amp;#39;t get there before it decides to reject me. When I first tried this, it would at least let me make the selections and click the final &amp;quot;Pair&amp;quot; button before tossing me out on my ear, with the same errors.[/quote]
&lt;p&gt;This suggests that you have deleted the bond information in nRF Connect, but not in your application.&lt;/p&gt;
[quote user="SteveHx"]&amp;lt;info&amp;gt; app: Connected to a previously bonded device.[/quote]
&lt;p&gt;Your device tries to connect to nRF Connect using the keys stored when you bonded the device. This information is deleted in nRF Connect, so the connection is dropped.&lt;br /&gt;Try erasing your board, download the application again, delete any bond information in nRF Connect and try again.&lt;/p&gt;
&lt;p&gt;I would also like to note that you are testing an experimental example in our SDK.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123140?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 20:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd28d74b-1767-4175-b3d5-59e4fab9198f</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I can&amp;#39;t wait a week for each answer, and I can&amp;#39;t deliver a house of cards to my client. The whole BLE implementation here seems quite shaky. I have fallen back to testing just the unmodified CGMS application. I can get to step 2 of the instructions:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;You can also test the application with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nRF_Connect/nRF_Connect_intro.html"&gt;nRF Connect&lt;/a&gt; by performing the following steps:&lt;/em&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Compile and program the application. Observe that the BSP_INDICATE_ADVERTISING state is indicated.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Connect to the device from nRF Connect (the device is advertising as &amp;#39;Nordic_CGMS&amp;#39;), then bond to the device. To bond, click the settings button for the device in nRF Connect, select &amp;quot;Pair&amp;quot;, check &amp;quot;Perform Bonding&amp;quot;, and click &amp;quot;Pair&amp;quot;. Wait until the bond is established before you continue. Observe that the BSP_INDICATE_CONNECTED state is indicated.&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Step 1 works. When I connect, I can&amp;#39;t even get to the bonding at step 2, because even my fast fingers can&amp;#39;t get there before it decides to reject me. When I first tried this, it would at least let me make the selections and click the final &amp;quot;Pair&amp;quot; button before tossing me out on my ear, with the same errors.&lt;/p&gt;
&lt;p&gt;nRF Connect shows this:&lt;/p&gt;
&lt;div class="core-log-entry core-log-level-info" style="background-color:white;color:#333333;display:table-row;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:normal;height:20px;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:nowrap;"&gt;
&lt;div class="core-log-time" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;width:132px;"&gt;15:40:21.1400&lt;/div&gt;
&lt;div class="core-log-message" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;"&gt;Scan started&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-info" style="background-color:white;color:#333333;display:table-row;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:normal;height:20px;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:nowrap;"&gt;
&lt;div class="core-log-time" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;width:132px;"&gt;15:40:29.9580&lt;/div&gt;
&lt;div class="core-log-message" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;"&gt;Connecting to device&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-info" style="background-color:white;color:#333333;display:table-row;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:normal;height:20px;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:nowrap;"&gt;
&lt;div class="core-log-time" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;width:132px;"&gt;15:40:29.9860&lt;/div&gt;
&lt;div class="core-log-message" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;"&gt;Connected to device E7:BF:CF:EA:F0:0D&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-info" style="background-color:white;color:#333333;display:table-row;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:normal;height:20px;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:nowrap;"&gt;
&lt;div class="core-log-time" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;width:132px;"&gt;15:40:30.2540&lt;/div&gt;
&lt;div class="core-log-message" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;"&gt;Attribute value read, handle: 0x03, value (0x): 4E-6F-72-64-69-63-5F-43-47-4D-53&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-warn" style="background-color:white;color:#333333;display:table-row;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:normal;height:20px;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:nowrap;"&gt;
&lt;div class="core-log-time" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;width:132px;"&gt;15:40:34.0120&lt;/div&gt;
&lt;div class="core-log-message" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;"&gt;Authentication failed with status BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-log-entry core-log-level-info" style="background-color:white;color:#333333;display:table-row;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-weight:normal;height:20px;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:nowrap;"&gt;
&lt;div class="core-log-time" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;width:132px;"&gt;15:40:34.0330&lt;/div&gt;
&lt;div class="core-log-message" style="border-bottom:1px dotted gray;border-right:1px dotted gray;display:table-cell;height:20px;line-height:20px;padding:0px 20px;"&gt;Disconnected from device E7:BF:CF:EA:F0:0D, reason: BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;and the serial port on the PCA10040 shows this:&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Continuous Glucose Monitoring example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Directed advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising with whitelist.&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected to a previously bonded device.&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: Failed to secure connection. Disconnecting.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected&lt;br /&gt;&amp;lt;info&amp;gt; app: Directed advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising with whitelist.&lt;br /&gt;&amp;lt;info&amp;gt; app: Slow advertising with whitelist.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m STILL begging for some actual instructions that work on the supplied examples (latest versions, just downloaded last week), and then for documentation on how to set up an application with custom variables exposed to the BLE interface. If Nordic can&amp;#39;t help, are there any users out there who could give just enough guidance to get me past my frustration with non-working documentation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123050?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 12:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:542b4028-063c-4186-b17d-5994f7bee538</guid><dc:creator>SteveHx</dc:creator><description>&lt;div&gt;&lt;span style="font-size:medium;"&gt;At 2018-03-06 06:26 AM, Nordic DevZone wrote:&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class="CITE" cite=""&gt;Sorry for the delay.&lt;/blockquote&gt;
&lt;br /&gt;I can certainly understand about being swamped. Hopefully this is not typical of Nordic support.&lt;br /&gt;&lt;br /&gt;
&lt;blockquote class="CITE" cite=""&gt;&lt;span style="font-size:medium;"&gt;1)&lt;br /&gt;I&amp;#39;m not quite sure what you mean by this. &lt;br /&gt;When you write &amp;quot;03 41 42 43 44&amp;quot; to the &amp;quot;Bond Management Service Control Point&amp;quot; characteristic, you delete the bond&lt;br /&gt;that the application has with nRF Connect.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When you then disconnect the device from nRF Connect and try to reconnect, &lt;br /&gt;you will get an error. &lt;br /&gt;To reconnect you will have to delete the bond information in nRF Connect as well.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;
I&amp;#39;m not sure either. I can&amp;#39;t find any documentation as to what this &amp;quot;Bond&amp;quot; feature is, what it is good for, how to turn it on or off, etc.&lt;br /&gt;&lt;br /&gt;
&lt;blockquote class="CITE" cite=""&gt;&lt;span style="font-size:medium;"&gt;2)&lt;br /&gt;You can change some of the connection parameters in nRF Connect, such as the connection interval etc. &lt;br /&gt;Also, you are free to open the CGMS example and modify the code as you please. &lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;No kidding. That&amp;#39;s exactly what I&amp;#39;ve been doing. Right now I&amp;#39;m doing battle with getting it to connect reliably. RF link is solid, RSSI runs about -30 dBm, so that&amp;#39;s not it. It will often connect on the first start of the day and run fine for a while. But later it either refuses to connect at all, or connects and immediately disconnects.&lt;br /&gt;&lt;br /&gt;Given the number of options available in the BLE stack, surely there must be a configuration utility of some sort, to set all the options and make sure everything is consistent, and especially to designate what variables are exposed on BLE. Microchip did a fine job of that with their config utility for their TCPIP stack, but they similarly hid it where I didn&amp;#39;t discover it until I had wasted a lot of time trying to configure header files manually. Surely there is something similar here. I have tried both of the glucose examples, with enough success at times to make me believe they can actually work, but never a solid reliable application, even just compiling them straight out of the box. I have searched all over the various files and cannot find anything that selects what variables are exposed on BLE, etc. So please answer the specific questions:&lt;br /&gt;&lt;br /&gt;1) How to configure a particular application as to BLE parameters, choice of variables to expose on the BLE interface, options as to those variables (read-only, write-only, etc.)?&lt;br /&gt;&lt;br /&gt;2) How to correct the examples so they will connect reliably with either nRF Connect or with an actual user device?&lt;br /&gt;&lt;br /&gt;Steve Hendrix&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/123032?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 11:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb2d54f1-a5aa-4c0f-bd04-b690e9a94f55</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi! &lt;br /&gt;Sorry for the delay. &lt;br /&gt;&lt;br /&gt;1)&lt;br /&gt;I&amp;#39;m not quite sure what you mean by this. &lt;br /&gt;When you write &amp;quot;03 41 42 43 44&amp;quot; to the &amp;quot;Bond Management Service Control Point&amp;quot; characteristic, you delete the bond&lt;br /&gt;that the application has with nRF Connect.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5b0839d876e04f58b66ba13af9decaee/bondwr.png" /&gt;&lt;/p&gt;
&lt;p&gt;When you then disconnect the device from nRF Connect and try to reconnect, &lt;br /&gt;you will get an error. &lt;br /&gt;To reconnect you will have to delete the bond information in nRF Connect as well.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5b0839d876e04f58b66ba13af9decaee/bonddel.png" /&gt;&lt;br /&gt;&lt;br /&gt;2)&lt;br /&gt;You can change some of the connection parameters in nRF Connect, such as the connection interval etc. &lt;br /&gt;Also, you are free to open the CGMS example and modify the code as you please. &lt;br /&gt;&lt;br /&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/121864?ContentTypeID=1</link><pubDate>Sat, 24 Feb 2018 12:17:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:901f345c-aab8-4158-91c0-4433a2f3b57b</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry too. I have a client anxiously awaiting results, and although the meat of the application is performing beautifully, I can&amp;#39;t yet get the BLE connection to be reliable.&lt;/p&gt;
&lt;p&gt;Since I spoke of &amp;quot;pressing Enter&amp;quot;, and there is nothing labeled so on the mobile nRF Connect, I was clearly using the desktop version as you suggest. However, I have also procured and set up the mobile app, and it sometimes works quite nicely, sometimes not. I decided to power everything down, load firmware from scratch, etc., before having my client try it, and now I get &amp;quot;Authentication failed&amp;quot; and &amp;quot;Fault&amp;quot; crash messages on the serial port most of the time, though it will occasionally connect. Once it connects I can stream data nicely from my hardware to the displayed value, and have explored changes of scaling and update rates quite successfully.&lt;/p&gt;
&lt;p&gt;My two biggest questions at this point are:&lt;/p&gt;
&lt;p&gt;1) How to enter the &amp;quot;ABCD&amp;quot; authentication string on nRF Connect so I can get past that authentication.&lt;/p&gt;
&lt;p&gt;2) How to configure the base BLE connection. There is surely an application, or at least a source file, wherein all the GATT variables and their characteristics are defined. I have used MicroChip&amp;#39;s TCPIP Configuration utility for years, although it took me a while to find out about that. I&amp;#39;m hoping to avoid the same time-sink here in hunting for the actual tools.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example apps do not line up with the documentation.</title><link>https://devzone.nordicsemi.com/thread/121805?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 13:54:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21143a1f-2876-4c92-bfc8-306f14994188</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Steve.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry that you are having trouble testing the example.&lt;/p&gt;
&lt;p&gt;I would start by pointing out that the:&lt;/p&gt;
[quote user=""]You can also test the application with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nRF_Connect/nRF_Connect_intro.html"&gt;nRF Connect&lt;/a&gt; by performing the following steps:[/quote]
&lt;p&gt;refers to the nRF Connect app for desktop, and not the nRF Connect mobile app. &lt;/p&gt;
&lt;p&gt;You should be able to perform the test using the nRF Connect mobile app as well, but note that the reference to &amp;quot;Play button&amp;quot; etc. in the instructions will not be valid.&amp;nbsp;&lt;br /&gt;Also, the GUI will vary slightly depending on which mobile OS you are using.&lt;/p&gt;
&lt;p&gt;I tested the steps above using nRF Connect for desktop, and it all seemed to work just as expected. &lt;br /&gt;Added a screenshot of my nRF Connect view below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5b0839d876e04f58b66ba13af9decaee/nrfconnect.png" /&gt;&lt;/p&gt;
&lt;p&gt;Cheers, &lt;br /&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>