<?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 HRS demo using UART RX</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/318/ant-hrs-demo-using-uart-rx</link><description>Hi, 
 I add UART support using IRQ on the &amp;quot;ant_hrm_tx&amp;quot; example code. 
 and I&amp;#39;m sending packet of 4 bytes that contains: Delimiter,HeartRate,Battery,Delimiter 
 the frame is very basic and send every 1000ms from another MCU. 
 the problem is that I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2013 12:12:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/318/ant-hrs-demo-using-uart-rx" /><item><title>RE: ANT HRS demo using UART RX</title><link>https://devzone.nordicsemi.com/thread/1661?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2013 12:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357b846f-a4bc-4370-b634-2c5dff0af44c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you are using the ant_hrm_tx with no modification (UART0_IRQHandler() is already used in app_uart.c, where received data is filled to the m_rx_fifo buffer), then you can simply receive and for instance loopback bytes on the UART by adding the following 4 lines of code in hrm_tx.c:&lt;/p&gt;
&lt;p&gt;#include &amp;quot;app_uart.h&amp;quot;&lt;/p&gt;
&lt;p&gt;uint8_t  uart_byte;&lt;/p&gt;
&lt;p&gt;if(app_uart_get(&amp;amp;uart_byte) != NRF_ERROR_NOT_FOUND)&lt;/p&gt;
&lt;p&gt;app_uart_put(uart_byte);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>