<?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>Burst transmission attempt return a 4016 error (channel closed)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82920/burst-transmission-attempt-return-a-4016-error-channel-closed</link><description>Hello, 
 I&amp;#39;m developing a master device which requires 512Hz of sampling using the ADC, triggered by RTC0 via PPI. I&amp;#39;m trying to send these data using ANT but, since transmission would require at least 170Hz broadcast is not enough, so burst transmission</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Dec 2021 15:26:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82920/burst-transmission-attempt-return-a-4016-error-channel-closed" /><item><title>RE: Burst transmission attempt return a 4016 error (channel closed)</title><link>https://devzone.nordicsemi.com/thread/345389?ContentTypeID=1</link><pubDate>Wed, 29 Dec 2021 15:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8137a15b-6a0a-41de-a5c4-adfdc68eef18</guid><dc:creator>OswaldoP</dc:creator><description>&lt;p&gt;isn&amp;#39;t 0x4022 TRANSFER_IN_PROGRESS?&lt;/p&gt;
&lt;p&gt;Anyway, the problem was that I was trying to use the RTC0 and this caused conflicts with the SD and this was not flagged as a problem by segger, problem solved using RTC2. thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Burst transmission attempt return a 4016 error (channel closed)</title><link>https://devzone.nordicsemi.com/thread/344497?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 08:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a559a971-5e29-4a19-b6d5-2a73ce3cb05f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can find error code from ant_error.h, and 0x4020 is&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;NRF_ANT_ERROR_TRANSFER_IN_PROGRESS. In other words there is already a burst transfer in progress and you need to try again later calling &lt;span&gt;sd_ant_burst_handler_request()&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Burst transmission attempt return a 4016 error (channel closed)</title><link>https://devzone.nordicsemi.com/thread/344440?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 18:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1fa6461-da79-4770-97f2-ba8e25352acf</guid><dc:creator>OswaldoP</dc:creator><description>&lt;p&gt;I will open a thread in the forum thank you,&lt;/p&gt;
&lt;p&gt;if I add a delay of at least 10ms right after the channel setup, the error is no more 4016, but i have a 4020 which suggests an error in the sequence of burst transmission, is it ok to put a delay after the channel opening?&lt;/p&gt;
&lt;p&gt;since I&amp;#39;m trying to transmit a payload of 136B at every interrupt ( every 64 samples an interrupt is triggered, having 512sps gives an interrupt every 125ms), is the transmission speed enough? I mean, a single burst is 1088b, let&amp;#39;s say we have 100ms of timeslot, do 52832 transmit 1088b in a burst during this time?&lt;/p&gt;
&lt;p&gt;I moved the &amp;quot;transmission request&amp;quot; to the main function anyway, thank you for your suggestion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Burst transmission attempt return a 4016 error (channel closed)</title><link>https://devzone.nordicsemi.com/thread/344344?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 11:59:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3613ef06-c8c1-4f7b-9be8-f931569a24e5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You may direct this question to&amp;nbsp;&lt;a href="https://www.thisisant.com/forum/"&gt;https://www.thisisant.com/forum/&lt;/a&gt;&amp;nbsp;for ANT support, but it looks like the api return an NRF_ANT_ERROR_CHANNEL_NOT_OPENED.&lt;/p&gt;
&lt;p&gt;You are stating that the channel is opened, but it could be a race condition, what happens if you ignore the error the first time, do you experience it all the time?&lt;/p&gt;
&lt;p&gt;All that said, I am not sure I like the implementation of calling the burst directly from the ADC callback, I suggest you buffer up messages in the ADC callback (e.g. have two buffers of 1024bytes), and when one buffer is filled up, then you execute the&amp;nbsp;sd_ant_burst_handler_request() from the main() context.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>