<?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>Where I can read transmission type and device number of connected ANT+ device (HRM)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14226/where-i-can-read-transmission-type-and-device-number-of-connected-ant-device-hrm</link><description>Hi everyone, 
 Where I can read transmission type and device number of connected ANT+ device (HRM)? I want save those values and bound later only with currently connected device. Wildcard values are used (0) so any device near can connect.
I&amp;#39;m using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jun 2016 08:59:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14226/where-i-can-read-transmission-type-and-device-number-of-connected-ant-device-hrm" /><item><title>RE: Where I can read transmission type and device number of connected ANT+ device (HRM)?</title><link>https://devzone.nordicsemi.com/thread/54343?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2016 08:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e506ebd-6b4b-4053-b449-fdb1dc816aec</guid><dc:creator>kvrbek</dc:creator><description>&lt;p&gt;Yep, thats it. Thank You very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where I can read transmission type and device number of connected ANT+ device (HRM)?</title><link>https://devzone.nordicsemi.com/thread/54342?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2016 14:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bc9500b-5881-4e22-8f9a-ceb0acab7570</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can have a look at the ant_background_scanning example.&lt;/p&gt;
&lt;p&gt;See application_initialize(). To get ANT to pass the Device ID (device number, device type and transmisson type) you can use the following library configuration:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* Set library config to report Device ID */
uint32_t err_code = sd_ant_lib_config_set(ANT_LIB_CONFIG_MESG_OUT_INC_DEVICE_ID);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See background_scanner_process(). When you get the EVENT_RX event, you can get the device number with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint16_t device_id = (uint16_t)(p_ant_message-&amp;gt;ANT_MESSAGE_aucExtData[0]
                   | ((uint16_t)p_ant_message-&amp;gt;ANT_MESSAGE_aucExtData[1] &amp;lt;&amp;lt; 8));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and transmisson type with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t trans_type = p_ant_message-&amp;gt;ANT_MESSAGE_aucExtData[3];
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>