<?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>Unable to set 3 differents ANT+ BSC channels.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100372/unable-to-set-3-differents-ant-bsc-channels</link><description>Hi Nordic team, 
 I&amp;#39;m working on a Multiprotocol (BLE central / ANT+ display) project on nrf5340DK, for the multiprotocol part everything works fine i&amp;#39;m able to have the BLE central scan and connect to multiples devices, and the ANT+ part opening channels</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2023 08:19:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100372/unable-to-set-3-differents-ant-bsc-channels" /><item><title>RE: Unable to set 3 differents ANT+ BSC channels.</title><link>https://devzone.nordicsemi.com/thread/429482?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 08:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09a3f718-07e8-4a61-91de-1d0daefd3cfb</guid><dc:creator>Martdur</dc:creator><description>&lt;p&gt;I was using differents network numbers for every channels, using only one for all seems to fix the issue.&lt;/p&gt;
&lt;p&gt;All four channels receive data by now.&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set 3 differents ANT+ BSC channels.</title><link>https://devzone.nordicsemi.com/thread/429075?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 20:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:056a9844-61c1-4774-8530-a1edf5f1f22d</guid><dc:creator>sread</dc:creator><description>&lt;p&gt;Background scanning channels are typically used for device discovery, not for sensor data. I would recommend reconfiguring your code to use standard RX channels for your sensor data and implementing a separate background scanning channel&amp;nbsp;for device discovery if required. Concurrent searches are expected to be sequential, so depending on the contents of&amp;nbsp;ant_adv_start() this may lead to unpredictable&amp;nbsp;behavior.&lt;/p&gt;
&lt;p&gt;If your devices are on the ANT+ network they should use a single network number, this does not need to be unique to the channel. You can call ant_plus_key_set() once for network number 0 and reuse this for all ANT+ channel configurations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set 3 differents ANT+ BSC channels.</title><link>https://devzone.nordicsemi.com/thread/428954?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 09:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b744ba7-391d-48e5-aa8f-aaf350534812</guid><dc:creator>Martdur</dc:creator><description>&lt;p&gt;Hi, thanks you both for the quick answer.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not able to receive any data on the last configured channel, I&amp;#39;ve check the channel in the event callback and log it, it seems that no event is triggered on the last channel.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll investigate further in the ant_evt_hanlder(ant_evt_t *p_ant_evt).&lt;/p&gt;
&lt;p&gt;Here is my channel configuration :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int profile_setup(void) {
  // Initialize ANT+ HRM and BSC receive channel.
  int err;
  const ant_channel_config_t bsc_channel_config_cadence_speed =
  {
      .channel_number    = CONFIG_BSC_RX_CHANNEL_NUM,
      .channel_type      = BSC_DISP_CHANNEL_TYPE,
      .ext_assign        = EXT_PARAM_ALWAYS_SEARCH,
      .rf_freq           = BSC_ANTPLUS_RF_FREQ,
      .transmission_type = CONFIG_BSC_RX_CHAN_ID_TRANS_TYPE,
      .device_type       = 121,               // Speed and cadence
      .device_number     = 0x00,              // Wild card
      .channel_period    = 0x00,              // This is not taken into account.
      .network_number    = CONFIG_BSC_RX_NETWORK_NUM,
  };
  err = ant_bsc_disp_init(&amp;amp;bsc, &amp;amp;bsc_channel_config_cadence_speed, BSC_DISP_PROFILE_CONFIG(bsc));
  if (err) {
    LOG_ERR(&amp;quot;ant_bsc_disp_init failed: %d&amp;quot;, err);
    return err;
  }
    const ant_channel_config_t bsc_channel_config_speed =
  {
      .channel_number    = CONFIG_BSC_RX_CHANNEL_NUM_S,
      .channel_type      = BSC_DISP_CHANNEL_TYPE,
      .ext_assign        = EXT_PARAM_ALWAYS_SEARCH,
      .rf_freq           = BSC_ANTPLUS_RF_FREQ,
      .transmission_type = CONFIG_BSC_RX_CHAN_ID_TRANS_TYPE_S,
      .device_type       = 123,             // Only speed
      .device_number     = 0x00,              // Wild card
      .channel_period    = 0x00,              // This is not taken into account.
      .network_number    = CONFIG_BSC_RX_NETWORK_NUM_S,
  };

  err = ant_bsc_disp_init(&amp;amp;bs, &amp;amp;bsc_channel_config_speed, BSC_DISP_PROFILE_CONFIG(bs));
  if (err) {
    LOG_ERR(&amp;quot;ant_bsc_disp_init failed: %d&amp;quot;, err);
    return err;
  }

  const ant_channel_config_t bsc_channel_config_cadence =
  {
      .channel_number    = CONFIG_BSC_RX_CHANNEL_NUM_C,
      .channel_type      = BSC_DISP_CHANNEL_TYPE,
      .ext_assign        = EXT_PARAM_ALWAYS_SEARCH,
      .rf_freq           = BSC_ANTPLUS_RF_FREQ,
      .transmission_type = CONFIG_BSC_RX_CHAN_ID_TRANS_TYPE_C,
      .device_type       = 122,             // Only cadence
      .device_number     = 0x00,              // Wild card
      .channel_period    = 0x00,              // This is not taken into account.
      .network_number    = CONFIG_BSC_RX_NETWORK_NUM_C,
  };

  err = ant_bsc_disp_init(&amp;amp;bc, &amp;amp;bsc_channel_config_cadence, BSC_DISP_PROFILE_CONFIG(bc));
  if (err) {
    LOG_ERR(&amp;quot;ant_bsc_disp_init failed: %d&amp;quot;, err);
    return err;
  }

  err = ant_hrm_disp_init(&amp;amp;hrm, HRM_DISP_CHANNEL_CONFIG(hrm), ant_hrm_evt_handler);
  if (err) {
    LOG_ERR(&amp;quot;ant_hrm_disp_init failed: %d&amp;quot;, err);
  }

#if AUTO_ADV 
   ant_adv_start();
#endif
  return err;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BSC_RX_CHANNEL_NUM=2
CONFIG_BSC_RX_NETWORK_NUM=2
CONFIG_BSC_RX_CHAN_ID_TRANS_TYPE =1

CONFIG_BSC_RX_CHANNEL_NUM_S = 3
CONFIG_BSC_RX_CHAN_ID_TRANS_TYPE_S = CONFIG_BSC_RX_CHAN_ID_TRANS_TYPE
CONFIG_BSC_RX_NETWORK_NUM_S = 3

CONFIG_BSC_RX_CHANNEL_NUM_C = 4
CONFIG_BSC_RX_CHAN_ID_TRANS_TYPE_C = CONFIG_BSC_RX_CHAN_ID_TRANS_TYPE
CONFIG_BSC_RX_NETWORK_NUM_C = 4&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set 3 differents ANT+ BSC channels.</title><link>https://devzone.nordicsemi.com/thread/428831?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 18:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a894b8fb-269d-4741-bf84-8549cb85c7fd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, as long as the .channel_number is different for each of the channels you try to initialize you should be good. Maybe you can elaborate a bit what you mean by &amp;quot;not working&amp;quot;, do the first 2 channels fail in some way or doesn&amp;#39;t the 3rd channel receive any data?&lt;/p&gt;
&lt;p&gt;If possible you can in the&amp;nbsp;ant event handlers (e.g. ant_bsc_disp_evt_handler() and/or ant_evt_handler()) check for other events than&amp;nbsp;EVENT_RX, the full list of channel events are listed in ant_parameters.h. This may give some indication what is happening here.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set 3 differents ANT+ BSC channels.</title><link>https://devzone.nordicsemi.com/thread/428823?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 17:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ea20f08-33ad-4f39-9c39-ef6a8b093a33</guid><dc:creator>sread</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m from the ANT Wireless development team. Can you describe the&amp;nbsp;problem you&amp;#39;re seeing with the 3rd channel?&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;did not see any&amp;nbsp;issues&amp;nbsp;when&amp;nbsp;modifying the ANT+ bsc_rx sample to open speed, cadence, and combined ANT+ profile channels to receive data from SimulANT on each channel. More information on your channel configuration would be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>