<?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>ANT nrf51422 Proximity</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8230/ant-nrf51422-proximity</link><description>Hi all, 
 I would like to trigger some actions on difference devices communicating with the ANT protocol based on the distance they are from each other. A simple example would be to light an LED via PWM with a duty cycle depending on the distance from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jul 2015 18:18:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8230/ant-nrf51422-proximity" /><item><title>RE: ANT nrf51422 Proximity</title><link>https://devzone.nordicsemi.com/thread/29670?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2015 18:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c8307db-d630-420a-b4ea-5801469577d2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great! It should work. The Real Time Terminal may also be of interest. Please see this tutorial. If you get into trouble, please add a new question where you describe what you have done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANT nrf51422 Proximity</title><link>https://devzone.nordicsemi.com/thread/29669?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2015 17:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32c1bfd5-9f95-489f-854e-9e9eaedb9a0d</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;ok, so I just did a test in which I modified the broadcast receiver example for the SoftDevice s210 in order to read the RSSI values. I simply added this line before opening  the ant channel:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;		/* Enable RSSI level for received messages */ 
	// This function sets the ANT Messaging Library Configuration used by Extended messaging.
	sd_ant_lib_config_set(ANT_LIB_CONFIG_MESG_OUT_INC_RSSI);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Afterwards, in my channel handler I read the RSSI value and light up two LEDs depending on the value I get. This seems to work fine. One or the other LED lights up depending on the distance (and orientation) of my two ANT devices.&lt;/p&gt;
&lt;p&gt;Now I would like to read the values on my computer via UART connection. I just added the UART  to my code with an event handler that sends the RSSI data to the computer.
For some reason, that does not work. I do not know if I did something wrong here by having the ANT channel and the UART peripheral run in parallel.&lt;/p&gt;
&lt;p&gt;I will try to debug that...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANT nrf51422 Proximity</title><link>https://devzone.nordicsemi.com/thread/29668?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 16:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fa31111-8c5f-4649-a7ce-2ddcf31fd02f</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Well then I will make a quick test to see how this works and maybe post back my comments on the procedure&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANT nrf51422 Proximity</title><link>https://devzone.nordicsemi.com/thread/29667?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 10:50:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acb7d571-2fcf-486a-960d-d119a243167d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I also think using the extended messages format and get the RSSI from there is the best solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>