<?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+ FEC page 51 scanning  from external device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55327/ant-fec-page-51-scanning-from-external-device</link><description>I am trying to “spy on” two ANT+ devices talking to each other: 
 
 The first device is a bike trainer running the ANT+ FEC profile 
 The second device is a computer (running Zwift and sending commands to the trainer) 
 
 My goal is to receive the ANT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Dec 2019 07:47:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55327/ant-fec-page-51-scanning-from-external-device" /><item><title>RE: ANT+ FEC page 51 scanning  from external device</title><link>https://devzone.nordicsemi.com/thread/224608?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 07:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b3b80a2-8c17-4d3f-821d-4a2dbfcae455</guid><dc:creator>vincent.golle</dc:creator><description>&lt;p&gt;The problem is now solved, by the use of the function&amp;nbsp;sd_ant_rx_scan_mode_start instead of sd_ant_channel_open.&lt;/p&gt;
&lt;p&gt;The code to activate scanning of both masters and slaves is the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
/**@brief initialize application
 */
static void continuous_scan_init()
{
    uint32_t err_code;

    // Set library config to report RSSI and Device ID
    err_code = sd_ant_lib_config_set(
        ANT_LIB_CONFIG_MESG_OUT_INC_RSSI | ANT_LIB_CONFIG_MESG_OUT_INC_DEVICE_ID);
    APP_ERROR_CHECK(err_code);

    // Configure channel 0 for scanning mode
    ant_channel_config_t channel_config =
    {
        .channel_number    = CT_CHANNEL_NUMBER,
        .channel_type      = CHANNEL_TYPE_SLAVE,
        .ext_assign        = 0x00,
        .rf_freq           = FEC_ANTPLUS_RF_FREQ,
        .transmission_type = 0x05u,
        .device_type       = FEC_DEVICE_TYPE,
        .device_number     = TACX_DEVICE_NUMBER,
        .channel_period    = FEC_MSG_PERIOD,          // Not used, since this is going to be scanning
        .network_number    = ANTPLUS_NETWORK_NUMBER,
    };

    err_code = ant_channel_init(&amp;amp;channel_config);
    APP_ERROR_CHECK(err_code);

    // Activate message reception from the slave as well
    // This function starts receive scanning mode feature. Channel 0 must be assigned.  All other channels must be closed.
    err_code = sd_ant_rx_scan_mode_start(0);
    APP_ERROR_CHECK(err_code);

}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANT+ FEC page 51 scanning  from external device</title><link>https://devzone.nordicsemi.com/thread/224560?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 21:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67fc2085-af71-4ee5-ae71-a936adde053c</guid><dc:creator>vincent.golle</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;An update on the issue:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I now manage to see the packets using AntWare II when I use in the advanced tab &amp;quot;Open in scan mode&amp;quot;. (Data that starts with 00-33-... )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Opened in scan mode
Received BROADCAST_DATA_0x4E
  :: 4e, 00-19-CA-00-00-00-00-60-20-80-1E-0B-11-05
Received BROADCAST_DATA_0x4E
  :: 4e, 00-10-19-00-00-00-00-FF-24-80-1E-0B-11-05
Received BROADCAST_DATA_0x4E
  :: 4e, 00-19-CB-00-00-00-00-60-20-80-1E-0B-11-05
Received BROADCAST_DATA_0x4E
  :: 4e, 00-10-19-00-00-00-00-FF-24-80-1E-0B-11-05
Received ACKNOWLEDGED_DATA_0x4F
  :: 4f, 00-33-FF-FF-FF-FF-72-51-00-80-1E-0B-11-05
Received BROADCAST_DATA_0x4E
  :: 4e, 00-F0-00-00-00-00-00-00-00-80-1E-0B-11-05&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What is the equivalent channel configuration for th nRF52 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANT+ FEC page 51 scanning  from external device</title><link>https://devzone.nordicsemi.com/thread/224341?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 09:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86fae2ca-0f6f-4cb6-b576-cf432b2cfa35</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t have any other suggestion than to look at the profile description of the fitness equipment (control) profile:&lt;br /&gt;&lt;a href="https://www.thisisant.com/developer/resources/downloads/#documents_tab"&gt;https://www.thisisant.com/developer/resources/downloads/#documents_tab&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>