<?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>can&amp;#39;t bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25998/can-t-bound-with-oob-bonding-sdk13-nrf52-s132</link><description>Hi! 
 I can&amp;#39;t start project with OOB bonding. If I set settings like just works (MITM = 0, OOB =0), all works correct. But I need more security for bounding. For this reason I want to use OOB bonding. Or you can advise to me another mode for secure bounding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Oct 2017 07:41:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25998/can-t-bound-with-oob-bonding-sdk13-nrf52-s132" /><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102445?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 07:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89883cc9-b1e2-4e2c-b702-09835d66c789</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s good to hear Mikhail. Happy to help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102444?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 14:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daadfe2e-b0a5-48bf-808e-0bd064978164</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Sorry for understanding. I mean that after sniff, also as You I had seen and interpretate this behavior.
You are right. This code not my. It from previous developer.
I comment&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING:
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;now works fine.&lt;/p&gt;
&lt;p&gt;Hung, thanks a lot for your help. Really! Now works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102443?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 14:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f634814d-0013-48ac-9f55-8abdf3a5c647</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand this. Why couldn&amp;#39;t you describe that so we can save lots of time ?
I tried to clarify with you that the clone device would need to re-bond with the central because it doesn&amp;#39;t have the LTK to re-encrypt.&lt;/p&gt;
&lt;p&gt;allow_repairing is  inside conn_sec_config and handled in PM_EVT_CONN_SEC_CONFIG_REQ event inside pm_evt_handler(). But I&amp;#39;m not sure it&amp;#39;s there in your code.&lt;/p&gt;
&lt;p&gt;Could you try to comment out the code inside PM_EVT_CONN_SEC_FAILED and maybe trigger a disconnection to see if the clone device still can re-pair ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102448?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 14:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25087388-6a65-4242-8f9a-32333dec7b27</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Yes! I see same behavior. I didn&amp;#39;t say it to you. And You confirm it. Clone device set bond like a new device.
Better way will disable it. Let&amp;#39;s try to do it.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	case PM_EVT_CONN_SEC_FAILED:
	{
		switch (p_evt-&amp;gt;params.conn_sec_failed.error)
		{
			case PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING:
				err_code = pm_conn_secure(p_evt-&amp;gt;conn_handle, true);
				if (err_code != NRF_ERROR_INVALID_STATE)
				{
					APP_ERROR_CHECK(err_code);
				}
				break;
			case PM_CONN_SEC_ERROR_DISCONNECT:
            __asm(&amp;quot;nop&amp;quot;);

        default:
            break;
		}
	}break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Where can I find
allow_repairing set? What is this a variable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102447?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 12:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e98d47d-2190-45cb-84c2-41e07394d1ca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks for the trace Mikhail.&lt;/p&gt;
&lt;p&gt;From your 3rd trace (connect to the clone.pcapng) I can clearly see the clone device didn&amp;#39;t have the secret key.&lt;/p&gt;
&lt;p&gt;It rejected the encryption request, at packet #40. Then the central started to send a pairing request on packet #41 and re-bond with new key exchange.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s clearly show that the central started bonding with the cloned device as a new devicev(with same address). You need to disable this.&lt;/p&gt;
&lt;p&gt;If you use peer manager , please check PM_EVT_CONN_SEC_FAILED event in pm_evt_handler() and check what you do there.&lt;/p&gt;
&lt;p&gt;Also make sure allow_repairing set = false when you receive PM_EVT_CONN_SEC_CONFIG_REQ.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102446?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 09:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3efb956-474d-4a84-b961-25d22c64eb7e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please upload to any cloud storage and send me the link via personal message on devzone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102453?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 14:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dbd37f8-4f2e-4873-8f87-138a27123df2</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;do you have email where can I send log?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102452?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 14:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d759d0-c57d-4156-aa44-ecc189f90bef</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I&amp;#39;ll make sniffer trace and post it. Wait.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102451?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 14:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f692c8-1d0a-4e70-b228-abe676eb694f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You need to capture &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;a sniffer trace&lt;/a&gt; to see actually what happen over the air. Try to capture a complete session, including first bonding between normal peripheral and the central, then the reconnect between them, then the connection with the clone device.&lt;/p&gt;
&lt;p&gt;Have you verified that without bonding, you can&amp;#39;t access the characteristic ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102450?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 13:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c0c39e-b9c8-43e0-a88e-c79f824ab8d9</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;MAC I mean the Bluetooth Address. Looks like MAC.
with BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM()
same result...
any idea?
I not need secure connection after pairing. I need bond with only bonded before peripherial.
And thanks for help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102449?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 13:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:161e7aae-fe28-41e6-8b35-e29635cf1cf3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;By MAC, you mean the Bluetooth Address ?&lt;/p&gt;
&lt;p&gt;Any device can be connected to the central, there is no way to avoid that. But the link won&amp;#39;t be encrypted if the clone device doesn&amp;#39;t have the LTK.&lt;/p&gt;
&lt;p&gt;Make sure your characteristics would require encryption to be able to read or write. Using BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM() for attr_md.read_perm and attr_md.write_perm when you declare the service/characteristic instead of BLE_GAP_CONN_SEC_MODE_SET_OPEN()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102442?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 13:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce087974-4aab-4b14-a80f-2f00751db839</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I use static passkey.
I was try next configuration:
Peripherial -&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SEC_PARAM_BOND                  1                                
#define SEC_PARAM_MITM                  1                                
#define SEC_PARAM_LESC                  0
#define SEC_PARAM_IO_CAPABILITIES       BLE_GAP_IO_CAPS_DISPLAY_ONLY         
#define SEC_PARAM_OOB                   0 
...
static void gap_params_init(void)
{
uint32_t err_code;
ble_opt_t static_pin_option;
static_pin_option.gap_opt.passkey.p_passkey = (uint8_t *)pass.passkey;
err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &amp;amp;static_pin_option);
APP_ERROR_CHECK(err_code);
...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;on central side I use next:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SEC_PARAM_BOND                  1                                
#define SEC_PARAM_MITM                  1      
#define SEC_PARAM_LESC              	0                                 
#define SEC_PARAM_KEYPRESS          	0                                 
#define SEC_PARAM_IO_CAPABILITIES       BLE_GAP_IO_CAPS_KEYBOARD_ONLY 

...

static void gap_params_init(void)
{
uint32_t err_code;
ble_opt_t static_pin_option;
static_pin_option.gap_opt.passkey.p_passkey = (uint8_t *)pass.passkey;
err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &amp;amp;static_pin_option);
APP_ERROR_CHECK(err_code);	
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now I can pair and bond those 2 devices. Work fine.
But I claim that if I clone MAC on another,I can connect to central despite was not bonded before.
Check it himself.
My be should use another type of passkey? Just tell me what should I do next? And where should modify in code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102436?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 11:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a28a805c-05a4-407e-97a7-e9312793e66a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Are you sure it&amp;#39;s the static passkey  ?&lt;/p&gt;
&lt;p&gt;What do you mean exactly by static passkey ? Have you used sd_ble_opt_set() with BLE_GAP_OPT_PASSKEY opt_id ? I have to ask because seems that the one who is generate passkey is the phone, not the central. Each time you bond the phone will generate a new passkey, not the same passkey (static passkey)&lt;/p&gt;
&lt;p&gt;It&amp;#39;s really hard to help you if you don&amp;#39;t understand the code.&lt;/p&gt;
&lt;p&gt;If you have a look at peer_manager_init() you can see the configuration of sec_param. Match that with what you see in the link I sent you:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sec_param.bond = true;
sec_param.mitm = true;
sec_param.lesc = 0;
sec_param.keypress = 0;
sec_param.io_caps = BLE_GAP_IO_CAPS_KEYBOARD_ONLY;
sec_param.oob = false;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On one device you set io_caps with KEYBOARD_ONLY, on the other device (peripheral for example) you set it with BLE_GAP_IO_CAPS_DISPLAY_ONLY&lt;/p&gt;
&lt;p&gt;Then you can pair the 2 device with passkey. Normal passkey, not static passkey. After you pass that step, we will continue with static passkey.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot; But repeat- possible after bond to clone mac to another pheripherial device and this cloned peripherial connect !!!! Karl !!! to central. &amp;quot;&lt;/em&gt; =&amp;gt; I don&amp;#39;t understand what you describe here. Bond information can&amp;#39;t be cloned with just the mac address. Unless they have access to your device and clone the whole flash. Then it doesn&amp;#39;t matter what type of bonding you have passkey or OOB or JustWork.&lt;/p&gt;
&lt;p&gt;Or if you want to say the clone device clone the address, then try to re-bond (remove old bond information and bond again), you can configure the central of not allowing re-pairing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102434?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 09:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f0d528-acc8-4455-ac8e-7d5f2c5c8016</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hi!
I have read your link regarding bonding types. But can&amp;#39;t undestand exactly how to do.&lt;/p&gt;
&lt;p&gt;I already made application where on central side (nRF52) I have
sec_param.io_caps = BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY and static passkey.
On a peripherial side I use smartphone. When central connect to smartphone, appear keyboard on smartfone where I have to type my static passkey from central.
All works fine.&lt;/p&gt;
&lt;p&gt;Now I need change peripherial smartphone to nRF52 in same mode.&lt;/p&gt;
&lt;p&gt;Regarding bounding- ofcourse I mean bonding. Sorry for english )&lt;/p&gt;
&lt;p&gt;When I set parameters like SDK bonding types- Just Works, I bond.
But repeat- possible after bond to  clone mac to another pheripherial device and this cloned peripherial connect !!!! Karl !!! to central. You can try this experiment.&lt;/p&gt;
&lt;p&gt;So, let&amp;#39;s try set settings on central and periph for exlude this behavior and bond with LTK key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102437?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 08:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79f7da69-170e-425f-bcdb-51cbd23c7dac</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you really read the link I gave you ? It clearly shows you what configuration you need when you want &amp;quot;Passkey bonding with keyboard capabilities&amp;quot;&lt;/p&gt;
&lt;p&gt;When you do passkey, one device will display the code (sec_param.io_caps = BLE_GAP_IO_CAPS_DISPLAY_ONLY) and one device will have keyboard to type that code in.&lt;/p&gt;
&lt;p&gt;We are talking about normal passkey bonding. Static passkey we will do it in the next step, after you managed to do normal passkey bonding.&lt;/p&gt;
&lt;p&gt;&amp;quot;But with those settings, it bond not secure and possible to clone same tag peripherial by MAC and I can connect to my central by second tag. It is not normal. &amp;quot; =&amp;gt; What exactly you meant by this ? I don&amp;#39;t understand, why other clone tag can connect to your central ? When you do bonding, the secret key LTK to re-establish connection will be exchanged after the connection is encrypted. That LTK is the key to re-encrypt the link on further connections.&lt;/p&gt;
&lt;p&gt;And what is &amp;quot;bound&amp;quot; &amp;quot;bounding&amp;quot; ? it&amp;#39;s bond you meant ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102441?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 16:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27f019b-9fe9-4804-ad03-041202f457f4</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;When I will use BLE_GAP_AUTH_KEY_TYPE_PASSKEY , which one settings set on central and peripherial?
I can&amp;#39;t just set MITM to on without any settings like OOB, or SEC_PARAM_IO_CAPABILITIES, because just set MITM to 1- project fall.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102440?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 15:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5967e7e7-d1ac-40ab-a4b7-b9a219caeed5</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I really can&amp;#39;t understand how it should work correct. Your link I already read. Let&amp;#39;s again. Which one mode should I use from your link for my purpose?
Do You understad what I need from central? Which type of bonding.&lt;/p&gt;
&lt;p&gt;And tell me which settings should set on the peripherial side and on the central side and I&amp;#39;ll give you more detail. I mean how I tested and what doesn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102439?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 15:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a1c1816-436b-427f-b08d-07708f96d53e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I can&amp;#39;t help if you don&amp;#39;t do your work. You need to understand how the stuff work. I suggest you to read about BLE security both BLE legacy pairing and BLE secure connection.&lt;/p&gt;
&lt;p&gt;&amp;quot;BLE_GAP_AUTH_KEY_TYPE_PASSKEY on central side doesn&amp;#39;t work.&amp;quot; =&amp;gt; When something doesn&amp;#39;t work, you need to provide information about that, how did you test,  what doesn&amp;#39;t work , which error, ?
I don&amp;#39;t see any reason passkey wouldn&amp;#39;t work on the central.&lt;/p&gt;
&lt;p&gt;Note that when you want to do passkey, you need to set the IO capabilities and you need to set MITM on.  See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/lib_pm_usage.html?cp=4_0_0_3_2_6_2_1#lib_pm_usage_security"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102438?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 15:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd0070aa-e853-4108-a935-8be33d5ca6eb</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I have tested your glucose example. Yes, this works. Bound. But with those settings, it bond not secure and possible to clone same tag peripherial by MAC and I can connect to my central by second tag. It is not normal. I want excluse this behavoir.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102433?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 14:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a759ffe-f664-4635-b27d-c9b92fc23f6a</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;BLE_GAP_AUTH_KEY_TYPE_PASSKEY on central side doesn&amp;#39;t work.
May be I should make any settings on a peripherial side?&lt;/p&gt;
&lt;p&gt;Repeat: I have a task- make bonding central with peripherial. But Just works does not fit due to secure reason. Give me a way to decide this task. What should I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102432?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 13:55:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ee2547b-329f-47fb-801d-154d5347a7d3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;OOB and passkey are not the same. You need to use BLE_GAP_AUTH_KEY_TYPE_PASSKEY instead of BLE_GAP_AUTH_KEY_TYPE_OOB.&lt;/p&gt;
&lt;p&gt;I strongly suggest before you test with static passkey, you test with normal passkey example first. You can try the Blood Glucose example &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/ble_sdk_app_gls.html?cp=4_0_0_4_1_2_10"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After that you can start testing with the static passkey.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102431?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 13:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a692d70f-8947-4387-86e4-715e71a0b559</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hi! Thanks for answer.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I try to use simply enter passkey via code. (directly). May be I not correct use this function.&lt;/li&gt;
&lt;li&gt;What does it mean kind of setup? On a central and on the peripherial I use nRF52, SDK13, S132.&lt;/li&gt;
&lt;li&gt;No error. But when I try to bound central with peripherial- no success.&lt;/li&gt;
&lt;li&gt;I did not try this example. I don&amp;#39;t need use NFC.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I just need use static passkey which was write before. Ofcourse, this static passkey same in peripherial and central.&lt;/p&gt;
&lt;p&gt;I added in the central event:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;        case BLE_GAP_EVT_AUTH_KEY_REQUEST:
     {
      

  sd_ble_gap_auth_key_reply(conn_handle, BLE_GAP_AUTH_KEY_TYPE_OOB, (uint8_t *)pass.passkey);

}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and I see call this event when connect peripherial to tag. But after that no bound devices.&lt;/p&gt;
&lt;p&gt;For any case- I just need make secure bound. Just works bond does not fit for secure reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't bound with OOB bonding. SDK13 nRF52 S132</title><link>https://devzone.nordicsemi.com/thread/102435?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 10:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c422ab18-b8d6-4382-9b8d-9a388164b9b3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mikhail,&lt;/p&gt;
&lt;p&gt;Please update more information on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;What OOB mechanism are you using ? it&amp;#39;s NFC or something else ?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;What kind of setup do you have ? Which chip is on the peripheral side and which device is on central side ?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;What kind of error do you have ? Have you checked the log ?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Have you tried to test our &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/ble_sdk_nfc_pairing_reference.html?cp=4_0_0_4_1_2_26"&gt;OOB example&lt;/a&gt; in the SDK ?&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>