<?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>There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64571/there-are-connectivity-problems-with-macbook-pro-and-nrf52840-dk-with-running-examples</link><description>I can not connect to nRF52840 DK with running Bluetooth: Peripheral HIDS keyboard example from macOS. And also with some other examples which I tried, but I chose this one just for describing the problem. In the case of the example Bluetooth: Peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Aug 2020 09:11:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64571/there-are-connectivity-problems-with-macbook-pro-and-nrf52840-dk-with-running-examples" /><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/265258?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 09:11:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1829cd6-dfea-4ca3-b61a-ab1d7ff082bf</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Good to hear! My pleasure :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/265216?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 06:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ead7f45-6c9a-4d08-b237-e6cb9a651f7e</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;Carl, thank you very much! Yes, your fix works perfectly for my MacBook Pro.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/264896?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 13:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab4178ef-0713-44cf-a052-75f7d5bc868f</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello again!&lt;br /&gt;&lt;br /&gt;I figured out the issue and have a fix ready for you :)&amp;nbsp; Just add the following line to your prj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_GATT_HIDS_DEFAULT_PERM_RW_ENCRYPT=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Hope it works for you!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;EDIT: The fix below is a workaround. Try the one above first.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;This is for Level2 security without MITM protection.&lt;br /&gt;&lt;br /&gt;You need to do some edits. Add the following line of code below&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;dk_set_led_on(CON_STATUS_LED);&amp;nbsp;&lt;/strong&gt;in the &amp;quot;connected&amp;quot; function.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	err = bt_conn_set_security(conn, BT_SECURITY_L2);
	if (err) {
		printk(&amp;quot;Failed to change security level: (%u)\n&amp;quot;, err);
		return;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then set passkey_display and passkey_confirm to NULL as shown below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static struct bt_conn_auth_cb conn_auth_callbacks = {
	.passkey_display = NULL, //Here
	.passkey_confirm = NULL, //Here
	.cancel = auth_cancel,
	.pairing_confirm = pairing_confirm,
#if CONFIG_NFC_OOB_PAIRING
	.oob_data_request = auth_oob_data_request,
#endif
	.pairing_complete = pairing_complete,
	.pairing_failed = pairing_failed
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This enabled my DK to connect and reconnect effortlessly to a MacOS computer.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/264652?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 14:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e42544f-53c4-4dcd-b485-b46a1fbe38d0</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;No problem! I&amp;#39;m looking at some way to fix it, but can&amp;#39;t manage to finish before weekend. I will look at it again on Monday and get in touch with the NCS team as well.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not entirely sure on how to fix it exactly, but it seems to be an issue with the MAC not sending a passkey to recject/accept.&lt;br /&gt;&lt;br /&gt;Have a good weekend,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/264541?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 00:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6428c84-50e7-42fb-9ec5-afcc0c93593b</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;Thanks for your answer! It&amp;#39;s great that you figured out an error. Should I fix NCS HID keyboard example somehow to provide encryption? And could you point me out how to do it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/264109?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 14:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08222ecf-ec36-49a6-8eb8-ce4d22abd6e5</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello, again!&lt;br /&gt;&lt;br /&gt;I think we&amp;#39;ve managed to pinpoint the issue. &lt;br /&gt;&lt;br /&gt;In short: It seems to be a problem with the NCS HID keyboard example, as it does not require encryption to work. However, the mac does, but it does not request it. Hence, the nRF52 thinks it is connected while the mac rejects all commands.&lt;br /&gt;&lt;br /&gt;We will look further into the issue tomorrow.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/264022?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 11:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d779b12-b0f4-4ce7-b8ce-87425da45df9</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;Thanks for your response! Unfortunately, now I haven&amp;#39;t got any other Apple devices to test Bluetooth connection with them. But I can send to you my Mac system configuration:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/macOS_5F00_info.txt"&gt;devzone.nordicsemi.com/.../macOS_5F00_info.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you need any other info to reproduce errors, let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/264006?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 10:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dad321b-7cd7-4ea4-af99-9eb044718ff8</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;I will look into this issue. Apologies for the delay.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you state which version of MacOS you use? And if possible, could you test with an iOS device and another Mac?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will attempt to reproduce and look into the&amp;nbsp;problem here.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There are connectivity problems with MacBook Pro and nRF52840 DK with running examples</title><link>https://devzone.nordicsemi.com/thread/263862?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 13:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef4a549f-e664-484f-bebf-fc029e78ed10</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My apologies for the late reply. I have not been able to look into your case but will do so tomorrow (Tuesday). I&amp;#39;m sorry for the inconvenience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>