<?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>Pairing fails with incorrect code entered error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1676/pairing-fails-with-incorrect-code-entered-error</link><description>I am using pca10001 board and started my development from nrf6310/s110/ble_app_hids_keyboard.
SDK version is 6.0.0. I have successfully tested my device with (MCP) Master Control Panel v3.5.0.8226: I can discovery it, I can bond to the device and I can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 22 Feb 2014 10:59:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1676/pairing-fails-with-incorrect-code-entered-error" /><item><title>RE: Pairing fails with incorrect code entered error</title><link>https://devzone.nordicsemi.com/thread/7414?ContentTypeID=1</link><pubDate>Sat, 22 Feb 2014 10:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bfac56c-76f2-484b-ba29-b1f6a337c988</guid><dc:creator>Peeter Vois</dc:creator><description>&lt;p&gt;I got my device to work with Linux: the key presses will reach into text editor. So, anyone who is struggling to get hid over gatt device to run, Linux is an option besides W8.&lt;/p&gt;
&lt;p&gt;My distribution is FedoraCore-20&lt;/p&gt;
&lt;p&gt;I used bluez-5.14&lt;/p&gt;
&lt;p&gt;kernel is 3.13.3&lt;/p&gt;
&lt;p&gt;uhid driver is compiled as module.&lt;/p&gt;
&lt;p&gt;However I had little struggle to get things running well. Below are some hints for the one who is following this path.&lt;/p&gt;
&lt;p&gt;Make sure that system is running as expected&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;1# lsmod | grep uhid
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;you must see here a line showing that uhid is loaded. If not, then issue&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;1.1# modprobe uhid
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and verify again. If still nothing then you maybe do not have the module, check from&lt;/p&gt;
&lt;p&gt;/boot/config-&amp;lt;version&amp;gt; maybe the uhid is hardlinked into kernel.&lt;/p&gt;
&lt;p&gt;Check that you have deamon running&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;2# ps ax | grep bluetoothd
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;you must see that the daemon is running. Although for development, it might be good to see the debug log of
the daemon:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;2.1# service bluetooth stop
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and start the daemon in debug mode and store the log into out.log and console&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;2.2# /usr/libexec/bluetooth/bluetoothd -d -n 2&amp;amp;gt;&amp;amp;amp;1 | tee out.log
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;There is nice command line utility for managing bluetooth devices:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3# bluetoothctl
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;help command is going to give you pretty much ideas what you can do&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3.1 [bluetooth]# help
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;check the bluetooth radios with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3.1 [bluetooth]# list
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and select the radio you want to use with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3.2 [bluetooth]# select &amp;amp;lt;controllerMAC&amp;amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;now you need to power it on&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3.3 [bluetooth]# power on
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to connect to your device the following needs to be done, scanning is a must&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3.4 [bluetooth]# scan on
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;if you have seen the mac of your device&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3.5 [bluetooth]# scan off
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;now pair with it&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3.6 [bluetooth]# pair &amp;amp;lt;deviceMAC&amp;amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and you need to connect&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;3.7 [bluetooth]# connect &amp;amp;lt;deviceMAC&amp;amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To verify that the hid over gatt profile is in use, you can check if the /dev/uhid is open by the bluetoothd&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;4# lsof | grep uhid
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;you must see a line showing which process has opened the device.&lt;/p&gt;
&lt;p&gt;Now you are pretty much all set, start using your device and check the out.log if you need to.&lt;/p&gt;
&lt;p&gt;Good Luck !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing fails with incorrect code entered error</title><link>https://devzone.nordicsemi.com/thread/7413?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2014 15:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd8451f8-3210-4e1d-b962-f48af2610a1a</guid><dc:creator>Peeter Vois</dc:creator><description>&lt;p&gt;I have found that W7 is not supporting this thing correctly. W8 must have available drivers. I managed to pair the device with Linux (FedoraCore20) which does have bluez-5.14. Bluez-4 does not support HoGP. Now I can also connect to the device but seems that I need to do more work on getting the key presses running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing fails with incorrect code entered error</title><link>https://devzone.nordicsemi.com/thread/7412?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2014 17:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dadf16ba-4be7-4f0a-a84c-2182a62974d9</guid><dc:creator>Peeter Vois</dc:creator><description>&lt;p&gt;I have following news, when I specify&lt;/p&gt;
&lt;p&gt;#define SEC_PARAM_IO_CAPABILITIES       BLE_GAP_IO_CAPS_KEYBOARD_ONLY&lt;/p&gt;
&lt;p&gt;instead of BLE_GAP_IO_CAPS_NONE,&lt;/p&gt;
&lt;p&gt;Then windows is asking me to enter a code into my device. At the moment I can not do that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>