<?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>How to use nRF51-ble-app-uart-static-passkey with linux</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4835/how-to-use-nrf51-ble-app-uart-static-passkey-with-linux</link><description>Hi 
 I would like to develop an application for the nrf51822 with a static passkey that connects with linux. The example &amp;quot;nRF51-ble-app-uart-static-passkey&amp;quot; gives a great template for that. However, I couldn&amp;#39;t get it to run with linux and its bluez toolchain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Feb 2015 16:39:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4835/how-to-use-nrf51-ble-app-uart-static-passkey-with-linux" /><item><title>RE: How to use nRF51-ble-app-uart-static-passkey with linux</title><link>https://devzone.nordicsemi.com/thread/17086?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2015 16:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f19751-1832-4337-8e44-22d999ec0fc4</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Try to remove the pairing info first (you may need to apt-get install bluez-tools):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bt-device -r &amp;lt;DEVICE_ADDR&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Start bluez-simple-agent in another terminal window. It should respond with &amp;quot;Agent registered&amp;quot;. Leave it.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bluez-simple-agent
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Start gatttool:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo gatttool -b &amp;lt;DEVICE_ADDR&amp;gt; -t random -I
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In gatttool set high security level:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sec-level high
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Connect:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;connect
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now simple-agent should ask for a passkey in the other terminal window.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>