<?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>Connection problem to nRF51822 from Linux</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52793/connection-problem-to-nrf51822-from-linux</link><description>I am developing a HID keyboard based on an nRF51822. 
 
 The firmware source available here: 
 https://github.com/martonmiklos/ble_keyboard_fw 
 
 (It is based on the ble_sdk_app_hids_mouse example.) 
 I am building it with S130 softdevice with nRF5_SDK_12</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Oct 2019 07:01:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52793/connection-problem-to-nrf51822-from-linux" /><item><title>RE: Connection problem to nRF51822 from Linux</title><link>https://devzone.nordicsemi.com/thread/213544?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 07:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44abbc32-4653-4183-a701-b8887cb1b6b6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Seems you have enabled MITM, and the passkey you see there you must insert into the peripheral as shown in the message sequence chart:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___p_k___c_e_n_t_r_a_l___o_o_b___m_s_c.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___p_k___c_e_n_t_r_a_l___o_o_b___m_s_c.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For debugging you may disable MITM for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem to nRF51822 from Linux</title><link>https://devzone.nordicsemi.com/thread/213266?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 19:27:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e47026d8-940c-40e8-9267-4fd20468f467</guid><dc:creator>martonmiklos</dc:creator><description>&lt;p&gt;For the sake of posterity:&lt;/p&gt;
&lt;p&gt;- I have deleted the connection from bluetoothctrl with &lt;/p&gt;
&lt;p&gt;```[bluetooth]# remove E8:83:76:AE:34:7D&lt;br /&gt;[DEL] Device E8:83:76:AE:34:7D MM-keyboard&lt;br /&gt;Device has been removed```&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then scanned again, and I am able to connect:&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;Attempting to connect to E8:83:76:AE:34:7D&lt;br /&gt;[CHG] Device E8:83:76:AE:34:7D Connected: yes&lt;br /&gt;Connection successful&lt;br /&gt;[NEW] Primary Service&lt;br /&gt; /org/bluez/hci1/dev_E8_83_76_AE_34_7D/service0008&lt;br /&gt; 00001801-0000-1000-8000-00805f9b34fb&lt;br /&gt; Generic Attribute Profile&lt;br /&gt;[NEW] Primary Service&lt;br /&gt; /org/bluez/hci1/dev_E8_83_76_AE_34_7D/service0009&lt;br /&gt; 0000180a-0000-1000-8000-00805f9b34fb&lt;br /&gt; Device Information&lt;br /&gt;[NEW] Characteristic&lt;br /&gt; /org/bluez/hci1/dev_E8_83_76_AE_34_7D/service0009/char000a&lt;br /&gt; 00002a29-0000-1000-8000-00805f9b34fb&lt;br /&gt; Manufacturer Name String&lt;br /&gt;[NEW] Characteristic&lt;br /&gt; /org/bluez/hci1/dev_E8_83_76_AE_34_7D/service0009/char000c&lt;br /&gt; 00002a50-0000-1000-8000-00805f9b34fb&lt;br /&gt; PnP ID&lt;br /&gt;[CHG] Device E8:83:76:AE:34:7D UUIDs: 00001800-0000-1000-8000-00805f9b34fb&lt;br /&gt;[CHG] Device E8:83:76:AE:34:7D UUIDs: 00001801-0000-1000-8000-00805f9b34fb&lt;br /&gt;[CHG] Device E8:83:76:AE:34:7D UUIDs: 0000180a-0000-1000-8000-00805f9b34fb&lt;br /&gt;[CHG] Device E8:83:76:AE:34:7D UUIDs: 0000180f-0000-1000-8000-00805f9b34fb&lt;br /&gt;[CHG] Device E8:83:76:AE:34:7D ServicesResolved: yes&lt;br /&gt;[agent] Passkey: 581922&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;Now I am facing with an another issue: I cannot get it paired and the connection is broken from time-to time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem to nRF51822 from Linux</title><link>https://devzone.nordicsemi.com/thread/213263?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 18:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c75491b-aeae-4544-a0c5-c1583d2f0835</guid><dc:creator>martonmiklos</dc:creator><description>&lt;p&gt;Just tried it, unfortunately it has the same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem to nRF51822 from Linux</title><link>https://devzone.nordicsemi.com/thread/213106?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 07:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:532d726c-f260-4933-9902-7e5a10e9e13c</guid><dc:creator>martonmiklos</dc:creator><description>&lt;p&gt;Thanks Kenneth, I will give it a try and report back!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection problem to nRF51822 from Linux</title><link>https://devzone.nordicsemi.com/thread/212971?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 11:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d941844b-435b-4e72-bcbf-04e8f6270641</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I am not familiar with linux, but I notice in your log it says: &amp;quot;&lt;span&gt;Status: PIN or Key Missing (0x06)&lt;/span&gt;&amp;quot;, I think the following suggestion will fix that:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47718/pairing-rejected-by-nordic_bps/189277#189277"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47718/pairing-rejected-by-nordic_bps/189277#189277&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>