<?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>How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60158/how-to-arrange-ble-and-ant-event</link><description>Hello, Nordic 
 I&amp;#39;m developing with nrf52840, s340, sdk 16.0.0, gcc-arm-none-eabi-7-2018-q2 in my customboard. 
 Currently, I&amp;#39;m using master of Ble and Ant. 
 It is possible to get datas from Ble sensor once a second if I don&amp;#39;t try to search Ant sensor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Apr 2020 14:14:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60158/how-to-arrange-ble-and-ant-event" /><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245594?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 14:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2149779c-6265-4fce-881f-7369944fff9f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It is normal to get &lt;span&gt;EVENT_RX_FAIL&amp;nbsp;sometimes, for instance a &amp;lt;2-3%&lt;/span&gt;, how many % do you get&amp;nbsp;&lt;span&gt;EVENT_RX_FAIL?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I assume you are using external 32kHz crystal in your design?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245542?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 12:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e54f116b-b420-450e-b3f9-633a8bd5d5a0</guid><dc:creator>hongpal</dc:creator><description>&lt;p&gt;However, I can get&amp;nbsp;&lt;span&gt;EVENT_RX_FAIL&amp;nbsp;event without connect ble.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245537?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 12:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00eb046c-c1be-4e36-bfb2-12cd32f9d504</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;From time to time there may be collisions on air and packet loss due to interference. So that you may receive sporadic&amp;nbsp;&lt;span&gt;EVENT_RX_FAIL is something you should expect. In this case I notice you have a BLE interval of 500ms and an ANT channel of ~250ms. This will mean that you from time to time can get an&amp;nbsp;EVENT_RX_FAIL (they drift over eachother). If you in addition open an ANT channel search you need to have the priority to low/ background search to minimize the effect on the already open ANT channel. If you still experience issues I don&amp;#39;t think there is much you can do. You can try to configure BLE slave latency (&amp;gt;0) of the peripheral, this will allow to trade some lower throughput of BLE for ANT, you may also look into if you can use a different interval for BLE (e.g. ~490ms instead of 500ms).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245532?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 12:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94f93c2-6c1c-45b7-be77-c1135c993ca0</guid><dc:creator>hongpal</dc:creator><description>&lt;p&gt;It depends on Ant+ sensor type.&lt;/p&gt;
&lt;p&gt;So I use one of 8086, 8102, 8118, 8070,8182, 8192, 8198.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245523?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 12:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e801f5f4-bfb2-4989-a1f6-61f29daae6e3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Search for&amp;nbsp;sd_ant_channel_period_set().&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245507?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 11:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a4eb29e-fc8c-4b8c-8eeb-546e0750368c</guid><dc:creator>hongpal</dc:creator><description>&lt;p&gt;I dont know ant interval.&lt;/p&gt;
&lt;p&gt;How to check that? If you say ant waevform, It is default.&lt;/p&gt;
&lt;p&gt;When is comes to ble, the min and max are 400 latency is 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245495?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 11:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e2d8647-2020-46d3-a3d9-ef9b7e8e062c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;What&amp;nbsp;are the connection parameters/interval of the BLE and ANT channels?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245490?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 10:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b257da2-d3d5-4f40-9d3b-4db567c664ad</guid><dc:creator>hongpal</dc:creator><description>&lt;p&gt;Of course, I always set low priority search.&lt;/p&gt;
&lt;p&gt;However, I can have this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245481?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 10:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:066ffd9c-57f3-46c6-8e20-f44fb5c47cd0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;This should be related to my first reply (since you need to change the priority of ANT search while there is an ANT channel open):&lt;br /&gt;&lt;a href="https://www.thisisant.com/resources/an11-ant-channel-search-and-background-scanning-channel"&gt;https://www.thisisant.com/resources/an11-ant-channel-search-and-background-scanning-channel&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/245428?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 07:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e193b5a6-1d7b-4638-945f-93e8489db37f</guid><dc:creator>hongpal</dc:creator><description>&lt;p&gt;The result is very good.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t have another problem.&lt;/p&gt;
&lt;p&gt;I connect one of Ant+ sensors and get datas from that, it is very work.&lt;/p&gt;
&lt;p&gt;However, if I open another channel to connect another sensors, I can get EVENT_RX_FAIL and EVENT_RX_FAIL_GO_TO_SEARCH. So I can sometimes lost connections from the sensors.&lt;/p&gt;
&lt;p&gt;How to solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/244685?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 11:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bedc3f05-358c-4712-a4ce-766b8e80a8f2</guid><dc:creator>Kenneth</dc:creator><description>[quote user="KimTaeHan"]is it correct to call functions before opening channel ?[/quote]
&lt;p&gt;Yes, before you open channel.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/244671?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 10:24:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b09b5c17-fb2f-4fc3-a1a9-fbc9b83cfdcc</guid><dc:creator>hongpal</dc:creator><description>&lt;p&gt;Thank you, I will try to do that.&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t know the time when I call&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s332.api.v6.1.1/group__ant__interface.html#gafa7782d6fcedf0de409c004ce88f1b36"&gt;sd_ant_coex_config_get()&lt;/a&gt;,&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s332.api.v6.1.1/group__ant__interface.html#gafa7782d6fcedf0de409c004ce88f1b36"&gt;sd_ant_coex_config_set()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;is it correct to call functions before opening channel ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/244652?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 09:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2bf904b-a66a-4d6d-8a88-54d62267a120</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Then I believe the problem is the same as discussed here:&lt;br /&gt;&lt;a href="https://www.thisisant.com/forum/viewthread/7332/"&gt;https://www.thisisant.com/forum/viewthread/7332/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You will need to use&amp;nbsp;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s332.api.v6.1.1/group__ant__interface.html#gafa7782d6fcedf0de409c004ce88f1b36"&gt;sd_ant_coex_config_get()&lt;/a&gt;&amp;nbsp;and &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s332.api.v6.1.1/group__ant__interface.html#ga2e4a252715e30105ba3f2f72165b5630"&gt;sd_ant_coex_config_set&lt;/a&gt;()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Something like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ANT_BUFFER_PTR readCfg;
uint8_t buffer[10];
readCfg.ucBufferSize = 10;
readCfg.pucBuffer = &amp;amp;buffer[0];

error = sd_ant_coex_config_get(channel, &amp;amp;readCfg, NULL);
readCfg.pucBuffer[0] &amp;amp;= ~0x08; // disable fixed search hp interval priority config
error = sd_ant_coex_config_set(channel, &amp;amp;readCfg, NULL);
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/244540?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 17:51:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69338150-9bf4-462f-b318-13562fb28caf</guid><dc:creator>hongpal</dc:creator><description>&lt;p&gt;I am doing your solution.&lt;/p&gt;
&lt;p&gt;Howerver, I still can see delayed datas.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to arrange Ble and Ant+ event ?</title><link>https://devzone.nordicsemi.com/thread/244522?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 16:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ded0961-edb3-413c-9cf1-8a853fc39c15</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I suspect you need to disable high priority search, see here for more information:&lt;/span&gt;&lt;br /&gt;&lt;a href="https://www.thisisant.com/resources/an11-ant-channel-search-and-background-scanning-channel"&gt;https://www.thisisant.com/resources/an11-ant-channel-search-and-background-scanning-channel&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Add ant_search_config.c from the nRF5 SDK, then it is configured by calling ant_search_init():&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__ant__search__config.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__ant__search__config.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For instance you need to set the following before calling&amp;nbsp;ant_search_init(&amp;amp;search_config):&lt;/p&gt;
&lt;p&gt;//&amp;nbsp;Disable&amp;nbsp;high&amp;nbsp;priority&amp;nbsp;search&amp;nbsp;to&amp;nbsp;minimize&amp;nbsp;disruption&amp;nbsp;to&amp;nbsp;other&amp;nbsp;channels&amp;nbsp;while&amp;nbsp;searching&lt;br /&gt;search_config.high_priority_timeout&amp;nbsp;=&amp;nbsp;ANT_HIGH_PRIORITY_SEARCH_DISABLE;&lt;/p&gt;
&lt;p&gt;Calling&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;ant_search_init(&amp;amp;search_config)&lt;/span&gt;&amp;nbsp;must be done before calling&amp;nbsp;sd_ant_channel_open().&lt;/p&gt;
&lt;p&gt;There should be ANT examples in the nRF5 SDK that show how you can use&amp;nbsp;&lt;span&gt;ant_search_init().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>