<?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>Connecting nRF51822 Beacon Kit to a Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58698/connecting-nrf51822-beacon-kit-to-a-raspberry-pi-4</link><description>Hello. I am using a Nordic Semiconductor Beacon (nRF 51822) and i am trying to connect it to my Raspberry Pi 4, but even though i installed Bluez, scanned using hcitool, i am able to find it (its mac) but i can&amp;#39;t connect to it. 
 I pressed SWD button</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Mar 2020 07:44:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58698/connecting-nrf51822-beacon-kit-to-a-raspberry-pi-4" /><item><title>RE: Connecting nRF51822 Beacon Kit to a Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/238711?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 07:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e242172-0159-4b07-a13f-b0bcd324aa73</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Tekk"]Thank you!![/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
&lt;p&gt;[quote user="Tekk"][/quote]&lt;/p&gt;
&lt;p&gt;I followed that post and now i can see my beacon RSSI. Now the only problem is to store it so that i can calculate the distance.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;As I said earlier I am not familiar with the hcitool commandline tool, and how you could capture its output, but I am sure hcitool provides the functionality you are after.&lt;br /&gt;A quick search for the hcitool reference yielded &lt;a href="http://maemo.org/development/documentation/man_pages/1227618979/"&gt;this overview&lt;/a&gt;, though I am unable to verify the specified options.&lt;br /&gt;It seems the rssi option&amp;nbsp;might be what you are looking for? Then you can save just the RSSI values directly.&lt;br /&gt;&lt;br /&gt;Alternatively, you could set up a script to sift through the hcitool output(using $grep for example), and $echo the parts you are interested in to another program or file.&lt;br /&gt;&lt;br /&gt;Hope this solves your issues with acquiring the beacon data you seek! :)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nRF51822 Beacon Kit to a Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/238595?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 16:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e99ece-b9b0-4d97-b44a-64be01c71fe4</guid><dc:creator>Tekk</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/58698/connecting-nrf51822-beacon-kit-to-a-raspberry-pi-4/238481"]Perhaps &lt;a href="https://stackoverflow.com/questions/24417017/bluetooth-le-signal-strength-linux"&gt;this&lt;/a&gt; post provides a solution for your issue with not seeing the advertisement packets?[/quote]
&lt;p&gt;Thank you!! I followed that post and now i can see my beacon RSSI. Now the only problem is to store it so that i can calculate the distance.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/58698/connecting-nrf51822-beacon-kit-to-a-raspberry-pi-4/238481"]Could you specify for me which desktop application you tried on your Raspberry Pi, along with which Linux distribution you are running on your Raspberry Pi?[/quote]
&lt;p&gt;On my Raspberry Pi I am running the &amp;quot;Raspbian Buster&amp;quot;, the version with desktop and recommended software and I tried installing the&amp;nbsp;nrfconnectsetup220.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nRF51822 Beacon Kit to a Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/238481?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 10:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8106fb6-d2c6-4176-bcec-e300c4676340</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am not familiar with the hcitool commandline tool that you describe, but from a quick search on stackoverflow it seems that&amp;nbsp;the command&amp;nbsp;&lt;em&gt;sudo hcitool lescan&lt;/em&gt;&amp;nbsp;will only output the addresses of nearby BLE devices to terminal, and nothing more.&lt;br /&gt;Perhaps &lt;a href="https://stackoverflow.com/questions/24417017/bluetooth-le-signal-strength-linux"&gt;this&lt;/a&gt; post provides a solution for your issue with not seeing the advertisement packets?&lt;br /&gt;Please attempt their solution, and let me know if you are able to retrieve the full advertisement package.&lt;br /&gt;Please also note the difference between &lt;strong&gt;Bluetooth classic&lt;/strong&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;and&amp;nbsp;&lt;strong&gt;Bluetooth Low Energy.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If the guide specifically tells you to connect to the beacons, it is inaccurate - since a beacon will not accept connections.&lt;/p&gt;
[quote user="Tekk"]on Raspberry i tried with the Desktop app, the one for Linux and no luck..[/quote]
&lt;p&gt;Could you specify for me which desktop application you tried on your Raspberry Pi, along with which Linux distribution you are running on your Raspberry Pi?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nRF51822 Beacon Kit to a Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/238401?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 19:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8338aaa0-579d-461c-94ae-e15b98393f0e</guid><dc:creator>Tekk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The only thing that I am able now to see is the MAC Address of the Beacon using&amp;nbsp;&lt;span&gt;&lt;strong&gt;sudo hcitool lescan&lt;/strong&gt;, but i can&amp;#39;t extract the data to calculate the position. I followed the tutorial from&amp;nbsp;&lt;a href="https://blog.truthlabs.com/beacon-tracking-with-node-js-and-raspberry-pi-794afa880318"&gt;here&lt;/a&gt;. In the&amp;nbsp;&lt;/span&gt;&lt;strong class="bf"&gt;hcitool &amp;amp; gatttool&amp;nbsp;&lt;/strong&gt;&lt;strong class="bf"&gt;&amp;nbsp;&lt;/strong&gt;section it says that you can see more information after connecting to the beacon, but i can&amp;#39;t connect as you said.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On my phone I installed the nRF Beacon app and worked fine, but on Raspberry i tried with the Desktop app, the one for Linux and no luck..&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nRF51822 Beacon Kit to a Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/238301?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 13:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8f1631d-d2e1-4617-93c0-365b9c385352</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Tekk"]Thank you for answering my question.[/quote]
&lt;p&gt;No problem at all, I am happy to help.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Tekk"] I want to receive my raspberry location (x, y)[/quote]
&lt;p&gt;Do I understand you correctly that you wish to use the data from your 4 beacons to calculate the position of your raspberry pi?&lt;br /&gt;I am not familiar with the RaspBerry Bluetooth API - are you able to see the beacons advertisements on your device? If so, are you able to extract the different data from the advertisement bit fields, such as the &lt;em&gt;manufacturer specific data&lt;/em&gt; or &lt;em&gt;vendor identifier&lt;/em&gt;?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Tekk"]I tried to install the program from nordicsemi site as shown in the user guide but still no luck.[/quote]
&lt;p&gt;Please elaborate which program you are referring to; do you mean the nRF Connect Desktop app, or are you referring to the nRF Beacon app for iOS/Android ( as mentioned in the Beacon User Guide? ) ? Please also detail your approach and what you have attempted to do.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nRF51822 Beacon Kit to a Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/238238?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 10:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc638b8a-31d7-4723-badf-a859cc415027</guid><dc:creator>Tekk</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for answering my question. Yes, I read the user guide and saw that example but still no luck getting the data from my beacon. What I am trying to do is:&lt;/p&gt;
&lt;p&gt;I will mount my beacons in my room, in the 4 upper corners and on my VNC Server (connected to my raspberrypi) I want to receive my raspberry location (x, y). I tried to install the program from nordicsemi site as shown in the user guide but still no luck.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nRF51822 Beacon Kit to a Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/238181?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 08:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a6ec5f2-26ec-481c-8fd7-e5feb4d82dd7</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Beacons does not allow connections, they only advertise their data in the manufacturer specific data field of their advertisement package.&lt;br /&gt;So the refused connection is expected.&lt;br /&gt;&lt;br /&gt;Have you seen the User Guide for the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF6930_Beacon_Ref_Design_UG_v1.1.pdf"&gt;nRF51822 Beacon&lt;/a&gt;?&lt;br /&gt;You may also be interested in seeing the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/ble_sdk_app_beacon.html"&gt;BLE peripheral Beacon example&lt;/a&gt; from the SDK(NB! the linked version is SDK v11.0.0).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>