<?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>What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21595/what-is-the-passkey-for-gls-example-where-is-it-set</link><description>What is the passkey for gls example, and where is it set 
 I am using SDK13, 10040 nrf52832 s132 
 Any help appreciated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Feb 2018 01:44:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21595/what-is-the-passkey-for-gls-example-where-is-it-set" /><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/121033?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 01:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69a21253-6683-4bcb-b2f1-81a8599c005e</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Well for me it is &amp;quot;always&amp;quot; works and I don&amp;#39;t need to change ANYTHING at all for the GLS example in sdk12. I use plain old armgcc and&amp;nbsp;make and nothing else, no IAR, no SES, no Keil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/121032?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 01:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ae817c-5bab-4cce-8f5e-8ac4d15cd562</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Use putty my friend &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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/121026?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 22:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27980264-6460-4bea-87bd-e2ff1822fad8</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;Disabling MITM protection per the define above does not work - there&amp;#39;s no longer any visible connection attempt.&lt;/p&gt;
&lt;p&gt;After many trials of many different things, suddenly the serial port began to work. If there&amp;#39;s anything worse that something that stops working for no reason, it&amp;#39;s got to be something that starts working for no reason! And I was able to see and enter a passkey, which apparently worked. After that, nothing. I need to now dig into the docs as I&amp;#39;ve gotten past the full-top issue. But I see the following sequence. Is the error message about adjusting RAM boundaries a real issue, and if so, how do I go about making that adjustment? Some linker script somewhere, perhaps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/121025?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 20:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3c6fe4e-5af6-418e-8309-e91b6262a405</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;Does the GLS example use the same pin for the serial port as the other examples, such that the SDK will see it as a USB serial port? I use &amp;quot;good older&amp;quot; Hyperterminal to monitor the serial port, and it worked just fine with printf in the other demos as well as my own code. I&amp;#39;m on Win7, which doesn&amp;#39;t come with HT any more, but I have copied HT from earlier versions and it works fine, once you get past a couple of startup glitches.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/120945?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 09:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15182c1a-ea5d-4455-95a0-3b52bddbc33b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I tested this on SDK v13.0.0 as well, and it works as described. Are you able to see output on UART from other examples? Have you tried with a freshly extracted SDK, to make sure you have not changed anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/120917?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 03:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8f13ea6-e510-4466-9a9b-3c7f2e0acd96</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;I don&amp;#39;t know about SDK13, but I tried the GLS in SDK12 just a few weeks ago with the PCA10040 and it worked right out of the box. How did you &amp;quot;monitor&amp;quot; the serial port? I use the good old putty and could see the 6 digit passkey (and other debug messages too) fine. I use Win 7 as my development environment. As for the code where the passkey is sent to the serial port, try to look for BLE_GAP_EVT_PASSKEY_DISPLAY in the main.c. And if you want to disable the passkey then try&lt;br /&gt;&lt;br /&gt;#define SEC_PARAM_MITM 0 //&amp;lt;-- I guess this may work but I never try it myself...&lt;br /&gt;&lt;br /&gt;in the main.c also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/120913?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2018 01:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a196d9-f3d1-4c69-a210-6a75240a12fd</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I have the exact same problem, and I&amp;#39;ve been thru the documentation a dozen times or more. i am attempting to connect to the examples GLS app running on the 10040 dev kit, using nRF Connect via a second 10040 dev kit. I am monitoring the serial ports on both, set as the documentation calls out at 115.2 KBPS, 8,n,1, and nothing ever comes out of either serial port, although nRF Connect requests the passkey. Apparently from looking at the code it is to be 6 characters long, but the daisy-chain to actually see how it&amp;#39;s selected is horrendously long and convoluted. I must be missing something simple - how can I get that passkey, or alternatively, disable the need for it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/84785?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 10:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:977a2be2-114e-40ea-92a6-28b8fc500ce9</guid><dc:creator>Renix</dc:creator><description>&lt;p&gt;Jørgen, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the passkey for gls example, where is it set</title><link>https://devzone.nordicsemi.com/thread/84784?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 08:30:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:949a7db5-bc2b-45a9-a7ae-13aecfbc24df</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/ble_sdk_app_gls.html?cp=4_0_0_4_1_2_7_0_0#mitm_protection"&gt;Glucose Application documentation&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A passkey must be entered at the
central to complete the bonding and
ensure MITM protection. The Glucose
Application will present the passkey
during bonding. It is sent on the
UART. It is therefore important that
UART is set up correctly on the
receiving side.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The passkey is generated randomly by the softdevice and sent over UART. You will have to check the terminal for the passkey on each bonding procedure. In the example, the passkey is sent over UART on receiption of a &lt;code&gt;BLE_GAP_EVT_PASSKEY_DISPLAY&lt;/code&gt; event in &lt;code&gt;on_ble_evt()&lt;/code&gt; handler. The passkey is available in &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v5.0.0%2Fstructble__gap__evt__passkey__display__t.html"&gt;&lt;code&gt;p_ble_evt-&amp;gt;evt.gap_evt.params.passkey_display.passkey&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>