<?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>&amp;quot;Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK.&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106258/regarding-the-issue-of-ant-disconnection-when-using-bluetooth-ble-and-ant-simultaneously-with-the-s332-sdk</link><description>&amp;quot;We need to maintain connections with three ANT channels while keeping BLE broadcasting and scanning active, as well as supporting BLE connections. However, we are encountering a problem: 
 
 When only ANT or Bluetooth is activated separately, there are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Dec 2023 15:00:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106258/regarding-the-issue-of-ant-disconnection-when-using-bluetooth-ble-and-ant-simultaneously-with-the-s332-sdk" /><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/459028?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 15:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dab97f7d-37ac-4291-92be-abf84903254d</guid><dc:creator>Johny huang</dc:creator><description>&lt;p&gt;&lt;span&gt;Okay, thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/459025?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 14:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:661a3ab3-f369-4a4c-bb92-449b0700332a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Okey, if you are scanning I suggest for BLE that you use a short scan window of for instance 3.75ms, and the scan interval can be equal or longer (longer can save current).&lt;/p&gt;
&lt;p&gt;I do not entirely understand why one BLE link should have such impact on the 3 ANT+ channels, but I suggest&amp;nbsp;you double check the advertisement interval and connection interval for BLE. For instance check if you set both to 30ms make it better or worse in any way.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/459016?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 14:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45f77687-d50a-4069-a087-c4fe1ee3cd3c</guid><dc:creator>Johny huang</dc:creator><description>&lt;p&gt;&lt;span&gt;Currently, we are not utilizing ANT+ or BLE scanning.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/459014?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 14:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13319278-2c3b-4cfd-acf7-500b5d93839b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;And the parameters used for scanning?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/459012?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 14:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ae30bbe-92c8-4259-8a13-68ebec7c7e3a</guid><dc:creator>Johny huang</dc:creator><description>&lt;p&gt;&lt;span&gt;这是我们设置的蓝牙广告间隔、连接间隔和超时时间。&lt;/span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BLE_OBSERVER_PRIO 3
#define BLE_TX_POWER 4

#define APP_BLE_CONN_CFG_TAG 1
#define APP_ADV_INTERVAL MSEC_TO_UNITS(250, UNIT_0_625_MS)
#define APP_ADV_DURATION 0

#define MIN_CONN_INTERVAL MSEC_TO_UNITS(50, UNIT_1_25_MS)
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(1000, UNIT_1_25_MS)
#define SLAVE_LATENCY 2
#define CONN_SUP_TIMEOUT MSEC_TO_UNITS(20000, UNIT_10_MS)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;以下设置与 ANT+ 配置有关。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// ANT+ Bike Radar
#define RDR_DEVICE_TYPE 0x28u      ///&amp;lt; Device type reserved for ANT+ heart rate monitor.
#define RDR_ANTPLUS_RF_FREQ 0x39u  ///&amp;lt; Frequency, decimal 57 (2457 MHz).
#define RDR_MSG_PERIOD_8Hz 0x0FF4u ///&amp;lt; Message period, decimal 4084 (8.12 Hz).
#define RDR_EXT_ASSIGN 0x00

// ANT+ Bike Light
#define LGT_ANTPLUS_RF_FREQ 0x39u  ///&amp;lt; Frequency, decimal 57 (2457 MHz).
#define LGT_MSG_PERIOD_8Hz 0x0FF4u ///&amp;lt; Message period, decimal 4084 (8.02 Hz).&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;同时，我们更换了32.768KHz 10PPM晶体振荡器。&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/459008?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 14:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeaa6b66-a89c-4aa9-86db-29515a5913f1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you tell me what parameters you are using for the scanning (e.g. scan window and interval), connection (interval) and advertisement (interval)?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/458848?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 01:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f245430e-a920-4c11-8a8d-8da19ebd52c2</guid><dc:creator>Johny huang</dc:creator><description>&lt;p&gt;&lt;span&gt;Based on your response and discussions on similar issues in the forum, I configured my project as follows during the initialization of the ANT channel, which resulted in some improvement in performance. However, the issue of ANT disconnection still persists, and there are instances where it displays on the code table.&lt;/span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	ant_search_config_t search_config =
    {
        .low_priority_timeout  = SEARCH_TIMEOUT,
        .high_priority_timeout = ANT_HIGH_PRIORITY_SEARCH_DISABLE,
        .search_sharing_cycles = SEARCH_CYCLES,
        .search_priority       = ANT_SEARCH_PRIORITY_DEFAULT,
        .waveform              = ANT_WAVEFORM_DEFAULT,     // Use fast waveform to limit impact on acquisition time from searching on multiple frequencies
    };
		
	ANT_BUFFER_PTR readCfg;
	uint8_t buffer[10];
	readCfg.ucBufferSize = 10;
	readCfg.pucBuffer = &amp;amp;buffer[0];
		
	search_config.channel_number = p_channel_config-&amp;gt;channel_number;
	ant_search_init(&amp;amp;search_config);
	sd_ant_coex_config_get(p_channel_config-&amp;gt;channel_number, &amp;amp;readCfg, NULL);
	readCfg.pucBuffer[0] &amp;amp;= ~0x08; 
	sd_ant_coex_config_set(p_channel_config-&amp;gt;channel_number, &amp;amp;readCfg, NULL);
	APP_ERROR_CHECK(ant_channel_init(p_channel_config));&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/458698?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 10:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a6fdbe3-ef9e-42e7-a56c-bad406fd0b32</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In English please.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/458661?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 08:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f6e68b8-195d-4b85-8bc3-d9ba39ecc47b</guid><dc:creator>Johny huang</dc:creator><description>&lt;p&gt;根据大家的回复和论坛中对类似问题的讨论，我在 ANT 通道初始化期间对我的项目进行了如下配置，这导致了性能的一些改进。但是，ANT 断开连接的问题仍然存在，并且在某些情况下它会显示在代码表上。&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	ant_search_config_t search_config =
    {
        .low_priority_timeout  = SEARCH_TIMEOUT,
        .high_priority_timeout = ANT_HIGH_PRIORITY_SEARCH_DISABLE,
        .search_sharing_cycles = SEARCH_CYCLES,
        .search_priority       = ANT_SEARCH_PRIORITY_DEFAULT,
        .waveform              = ANT_WAVEFORM_DEFAULT,     // Use fast waveform to limit impact on acquisition time from searching on multiple frequencies
    };
		
	ANT_BUFFER_PTR readCfg;
	uint8_t buffer[10];
	readCfg.ucBufferSize = 10;
	readCfg.pucBuffer = &amp;amp;buffer[0];
		
	search_config.channel_number = p_channel_config-&amp;gt;channel_number;
	ant_search_init(&amp;amp;search_config);
	sd_ant_coex_config_get(p_channel_config-&amp;gt;channel_number, &amp;amp;readCfg, NULL);
	readCfg.pucBuffer[0] &amp;amp;= ~0x08; 
	sd_ant_coex_config_set(p_channel_config-&amp;gt;channel_number, &amp;amp;readCfg, NULL);
	APP_ERROR_CHECK(ant_channel_init(p_channel_config));&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Regarding the issue of ANT disconnection when using Bluetooth (BLE) and ANT simultaneously with the S332 SDK."</title><link>https://devzone.nordicsemi.com/thread/458531?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 13:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90e846ea-74a2-4bdc-8a82-c04e955a7ab9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;To answer your question on ANT vs BLE priority, you may find this thread useful:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60158/how-to-arrange-ble-and-ant-event"&gt;How to arrange Ble and Ant+ event ?&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>