<?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>Toggle GPIO on Beacon when out of range of Phone?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40061/toggle-gpio-on-beacon-when-out-of-range-of-phone</link><description>Hello, 
 I&amp;#39;m just starting to use the nRF Smart Beacon kit. 
 Is it possible to have the beacon toggle a GPIO on-board when the beacon is out of range of the phone/app? 
 Also, is a specific compiler needed to create the application .hex file? 
 
 I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Nov 2018 15:07:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40061/toggle-gpio-on-beacon-when-out-of-range-of-phone" /><item><title>RE: Toggle GPIO on Beacon when out of range of Phone?</title><link>https://devzone.nordicsemi.com/thread/157147?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 15:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1f32a43-c72a-4bd8-852c-a2c70294f893</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;What I initially spotted, is that you are using a new version of nrfutil,&amp;nbsp; which will not work with SDK 7 and 6. Try using nrfutil version 0.5.1 instead (I have attached the executable). The commands are a little different, but typing&amp;nbsp;&lt;em&gt;nrfutil --help&amp;nbsp;&lt;/em&gt;gives more information.&lt;/p&gt;
&lt;p&gt;Have you checked if the sd-req numbers are according to the SoftDevice already present on the chip? It should be a sticker on the back showing the version, then check&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.rds%2Fdita%2Frds%2Fbeacon_kit.html"&gt;this&lt;/a&gt;&amp;nbsp;link&amp;nbsp;to find out what SoftDevice is used. Then, look&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/6427/resolving-nrf-softdevice-version-vs-internal-version-s-fwid#post-id-34762"&gt;here&lt;/a&gt;&amp;nbsp;to find the correct FWID.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Use the same method as above to find out what SDK the bootloader uses, and make sure the application comes from the same SDK.&lt;/p&gt;
&lt;p&gt;However, if somebody else has used the smart beacon before you, chances are big that the chip contains different firmware.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3f1f9329a8664fc084b315b05beb55d4/nrfutil.zip"&gt;devzone.nordicsemi.com/.../nrfutil.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle GPIO on Beacon when out of range of Phone?</title><link>https://devzone.nordicsemi.com/thread/156968?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 23:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f9cfe20-21d1-478d-983e-bfb8c8cba1ea</guid><dc:creator>Tartheis</dc:creator><description>&lt;p&gt;It would be nice to work with the hardware I already have, especially since it seems like I&amp;#39;m close to figuring it out.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve managed to use the nrfutil command to create a .zip package. But when I try to upload this package to the beacon using the nRF beacon app, I receive the error: remote dfu operation failed&lt;/p&gt;
&lt;p&gt;This is the code I used to generate the .zip package:&lt;br /&gt;&lt;span class="il"&gt;nrfutil&lt;/span&gt; pkg generate --hw-version 51 --application myapp.hex --application-version 0xffffffff --sd-req 0x64,0x45,0x5a myapp.zip&lt;/p&gt;
&lt;p&gt;Can you help me with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle GPIO on Beacon when out of range of Phone?</title><link>https://devzone.nordicsemi.com/thread/156950?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 16:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b537cf32-4e59-4b1a-bd58-f789f67ffedc</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the long delay.&lt;/p&gt;
&lt;p&gt;If you are planning on a big project I would absolutely recommend you to buy an nRF51 Development Kit, and program it using the debugger included with the kit.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/programming-the-nrf51822-beacon-kit-with-the-nrf51"&gt;Here&lt;/a&gt;&amp;nbsp;is a link explaining how to do it. Developing only using the DFU can be a nightmare, as it won&amp;#39;t let you debug your code. In addition, you can not upgrade the SoftDevice over the air nor use any SDK versions above SDK 7. Using a DK will make this possible.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12544/hi-i-have-nrf51822-beacon-kit-so-i-want-upgrade-the-firmware-then-what-are-the-possible-ways-i-have-and-how-can-i-do-it-without-nrf51-dk"&gt;Here&lt;/a&gt;&amp;nbsp;is an informative link regarding this.&lt;/p&gt;
&lt;p&gt;I am not sure what causes the error, I will look into it if you choose to continue with that approach (without DK and programmer).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle GPIO on Beacon when out of range of Phone?</title><link>https://devzone.nordicsemi.com/thread/156561?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 01:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:797f6970-6010-42f1-a486-c78f55a178e2</guid><dc:creator>Tartheis</dc:creator><description>&lt;p&gt;I&amp;#39;ve managed to compile a .hex file in Keil. Now I&amp;#39;m trying to create an init file.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve installed nrfutil through pip and have been attempting to run code that creates the init file:&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --hw-version 51 --sd-req 0x81 --application-version 4 --application app.hex test.zip&lt;/p&gt;
&lt;p&gt;I&amp;#39;m pretty sure my SoftDevice version is wrong since I have 7.1, but the list of SoftDevice codes didn&amp;#39;t go up that right. And I don&amp;#39;t know my application version. Any help here too?&lt;/p&gt;
&lt;p&gt;But I receive this error:&lt;/p&gt;
&lt;p&gt;AttributeError: &amp;#39;dict&amp;#39; object has no attribute &amp;#39;iteritems&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle GPIO on Beacon when out of range of Phone?</title><link>https://devzone.nordicsemi.com/thread/156241?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 23:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:800b3884-cc20-4ede-a438-19d0b63bba83</guid><dc:creator>Tartheis</dc:creator><description>&lt;p&gt;I&amp;#39;ve managed to use Keil to compile a new application .hex file, but it failed to upload to the Beacon.&lt;/p&gt;
&lt;p&gt;Is it possible to just update the beacon application file, or do I have to re-flash the bootloader as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle GPIO on Beacon when out of range of Phone?</title><link>https://devzone.nordicsemi.com/thread/155823?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 22:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:336e1dd4-118a-4104-bb53-41a9be55ff18</guid><dc:creator>Tartheis</dc:creator><description>&lt;p&gt;Thanks Simon. I&amp;#39;ve tried to reply a few times now, but something is wrong with this website.&lt;br /&gt;&lt;br /&gt;The main goal is to make the Smart Beacon toggle a GPIO on-board when outside the bluetooth range of the phone.&lt;/p&gt;
&lt;p&gt;Since I&amp;#39;m new to this dev. hardware, I&amp;#39;m being careful to not break it. Is it necessary to reprogram the application on the smart beacon to achieve the functionality I want?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve just downloaded Keil. How do I import the source code of the smart beacon? Is this the correct process for converting an edited &amp;quot;main.c&amp;quot; file back into a &amp;quot;.hex&amp;quot; file?&lt;/p&gt;
&lt;p&gt;This development is for a consumer product that I believe has a lot of potential in a large market. So far, the Smart Beacon has proven to be the perfect hardware for this. I just need to learn how to make it toggle a GPIO on-board when outside bluetooth range. But I still would like the app to be able to adjust the transmit power.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle GPIO on Beacon when out of range of Phone?</title><link>https://devzone.nordicsemi.com/thread/155761?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 13:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e751410-ff63-4491-a253-504840923450</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you seen the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk52.v0.9.0%2Fble_sdk_app_proximity.html"&gt;Proximity Application&lt;/a&gt;&amp;nbsp;example? That example makes it possible to connect to the phone through nRF Connect, and blink a LED on the board when the phone is out of range.&lt;/p&gt;
&lt;p&gt;Regarding compiler, if you are using Keil, it should work fine to use the included Arm/C/C++ Compilers.&lt;/p&gt;
&lt;p&gt;What specifically is your goal regarding re-programming the Smart Beacon app? My knowledge is not great about this, but I might be able to help you.&lt;/p&gt;
&lt;p&gt;Best regards, Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>