<?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>nrf52832 DK PCA10040 ble cannot connect with linux (hcitool neither gatttool)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26323/nrf52832-dk-pca10040-ble-cannot-connect-with-linux-hcitool-neither-gatttool</link><description>Hi, 
 I&amp;#39;m using Uart exemple to post data over BLE.
Everything works fine as long as I&amp;#39;m connecting with my phone with BLE apps. 
 I would like to connect using a linux system to log data and execute scripts. But here i my problem:
I&amp;#39;m able to scan</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Nov 2018 10:34:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26323/nrf52832-dk-pca10040-ble-cannot-connect-with-linux-hcitool-neither-gatttool" /><item><title>RE: nrf52832 DK PCA10040 ble cannot connect with linux (hcitool neither gatttool)</title><link>https://devzone.nordicsemi.com/thread/156846?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 10:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:211a0848-44ae-4f6e-b81a-3c1ff16e0e3c</guid><dc:creator>Zero.cool</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/enero"&gt;Enero&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am making the python script for the read/write connect/disconnect. So it would be a great if you can share your script&lt;/p&gt;
&lt;p&gt;My setup is ubuntu 64 bit with python 2.7.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thnaks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 DK PCA10040 ble cannot connect with linux (hcitool neither gatttool)</title><link>https://devzone.nordicsemi.com/thread/103582?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 08:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad341003-ed08-4a19-9d69-2c22898560c2</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Great to hear that you got it working! Good job!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 DK PCA10040 ble cannot connect with linux (hcitool neither gatttool)</title><link>https://devzone.nordicsemi.com/thread/103581?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2017 15:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a384f877-eecd-47fb-891a-9896c1701638</guid><dc:creator>Enero</dc:creator><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I finally managed to make everything work fine with python (bluepy).&lt;/p&gt;
&lt;p&gt;Unfortunately, the only cmd line working is the scan &amp;quot;sudo hcitool lescan&amp;quot; to get MAC_ADRESS&lt;/p&gt;
&lt;p&gt;I am still unable to connect using &amp;quot;gatttool -I -b MAC_ADRESS&amp;quot; or &amp;quot;sudo hcitool leccMAC_ADRESS&amp;quot;.
@Bjørn Kvaale, I red you links, I managed to scan properly using &lt;a href="https://communities.intel.com/thread/62848"&gt;this link&lt;/a&gt;  but It doesn&amp;#39;t change anything about connecting.&lt;/p&gt;
&lt;p&gt;Lucky for me, I only needed to connect, activate notifications, and use incoming events using Bluepy (python library), and this worked.&lt;/p&gt;
&lt;p&gt;To install bluepy library, I used &lt;a href="http://www.robopgmr.com/?p=4423"&gt;theses setps&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I could share my python code if needed.&lt;/p&gt;
&lt;p&gt;Thanks for your help, and have a good day !&lt;/p&gt;
&lt;p&gt;Sincerely&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 DK PCA10040 ble cannot connect with linux (hcitool neither gatttool)</title><link>https://devzone.nordicsemi.com/thread/103580?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2017 07:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:368a417d-53c7-4f79-ab01-30931f4c7cbf</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Have you googled your error yet? I found these three links that could be helpful: &lt;a href="https://www.raspberrypi.org/forums/viewtopic.php?t=21045"&gt;link 1&lt;/a&gt;, &lt;a href="https://raspberrypi.stackexchange.com/questions/44497/having-an-issue-with-bluetooth-manager-pairing-on-the-pi"&gt;link 2&lt;/a&gt;, &lt;a href="https://communities.intel.com/thread/62848"&gt;link 3&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 DK PCA10040 ble cannot connect with linux (hcitool neither gatttool)</title><link>https://devzone.nordicsemi.com/thread/103579?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 13:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d69627e9-442c-4f54-9547-0424b2f3ee35</guid><dc:creator>Otavio Borges</dc:creator><description>&lt;p&gt;By editing the /etc/group file you could give your user permission to access bluetooth peripheral. But if sudo did not solve the problem this won&amp;#39;t either.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 DK PCA10040 ble cannot connect with linux (hcitool neither gatttool)</title><link>https://devzone.nordicsemi.com/thread/103578?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 13:36:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7105c83e-ba79-4071-896d-d0188b943ef0</guid><dc:creator>Enero</dc:creator><description>&lt;p&gt;Thanks for your comment. I didn&amp;#39;t mention it, but yes I ran hcitool using sudo. What do you mean by adding user on bluetooth, netdev and plugdev groups ?&lt;/p&gt;
&lt;p&gt;Thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 DK PCA10040 ble cannot connect with linux (hcitool neither gatttool)</title><link>https://devzone.nordicsemi.com/thread/103577?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 12:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3538ed6-1c48-4cbe-8926-fe234342025d</guid><dc:creator>Otavio Borges</dc:creator><description>&lt;p&gt;Looks like user permission. Have you tried running hcitool with sudo?
Adding your user on bluetooth, netdev and plugdev groups should allow your user to access bluetooth connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>