<?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>Convert hrs Program to Beacon Style Program</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7184/convert-hrs-program-to-beacon-style-program</link><description>Hi,
I have a the nrf51822 chip on a custom board and the ble_hrs code loaded on it. Now I would like this custom board to behave as a beacon with the hrs code sending data. Please what parameters do I change in the code to do this?
Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 May 2015 21:18:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7184/convert-hrs-program-to-beacon-style-program" /><item><title>RE: Convert hrs Program to Beacon Style Program</title><link>https://devzone.nordicsemi.com/thread/25387?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 21:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11156628-e407-4509-b310-23ad121037f2</guid><dc:creator>Kosidinma</dc:creator><description>&lt;p&gt;Thanks i&amp;#39;ll look into this and feedback if needed :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert hrs Program to Beacon Style Program</title><link>https://devzone.nordicsemi.com/thread/25386?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 15:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7c3acfb-dee3-4ecd-9274-a70f41e19aa9</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;You can add a manufacturer specific field to the advertising packet (see &lt;a href="https://devzone.nordicsemi.com/tutorials/5/ble-advertising-a-beginners-tutorial/"&gt;this tutorial&lt;/a&gt; for more on this). Then you can re-initiate the advertising packet each time you have updated values to send. You can do this the same way as in the &lt;code&gt;advertising_init()&lt;/code&gt; function, but you can probably strip it down a bit and remove some lines of code. If you base your code on the ble_hrs example you can e.g. simply update the data in the &lt;code&gt;heart_rate_meas_timeout_handler()&lt;/code&gt; function. This is a quick and dirty solution to get you started. Since you don&amp;#39;t need to connect to anything you should modify the beacon example to measure some data (using a timer maybe) and then put it in the manufacturer data field as suggested above. I don&amp;#39;t think we have any specific examples for this so you should just go through the beacon example and maybe look into timers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert hrs Program to Beacon Style Program</title><link>https://devzone.nordicsemi.com/thread/25385?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 13:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c845918-fc35-4985-9d73-6d4ec02a442e</guid><dc:creator>Kosidinma</dc:creator><description>&lt;p&gt;Yes so it basically doesn&amp;#39;t need to connect/disconnect just send data directly to be picked up by a custom beacon scanning app....also, no advertising timeout..kind of like them estimote beacons&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert hrs Program to Beacon Style Program</title><link>https://devzone.nordicsemi.com/thread/25384?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 13:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b18ecdb0-a65d-4b77-baac-f8638854ce2f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;So what you want to do is simply to advertise the heart rate data and put the values in the advertising packet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>