<?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>when should a slave broadcast data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4378/when-should-a-slave-broadcast-data</link><description>Hi,
I&amp;#39;m using a 51422 with a s210/s310 softdevice. I have some nodes that must exchange some independent data. So I configured the communication to be an independent bidirectional channel. 
 On both sides of the channel, I use the EVENT_RX to receive</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Nov 2014 17:26:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4378/when-should-a-slave-broadcast-data" /><item><title>RE: when should a slave broadcast data?</title><link>https://devzone.nordicsemi.com/thread/15551?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2014 17:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a4fabd4-98e3-4115-9c3a-e7b12ac58ebd</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hi Asbjørn, and that&amp;#39;s exactly the configuration we&amp;#39;ve used to the beginning. The slave uses the RX_event and calls sd_ant_broadcast_message_tx() every time a RX_event is received. And this exact approache leeads to a results, where the master counts N EVENT_TXs and N/2 EVENT_RXs, while the slave counts N EVENT_RXs and N/2 EVENT_TXs.&lt;/p&gt;
&lt;p&gt;So the obvious approache that we took first and that your are describing as the route to follow, is &lt;em&gt;not&lt;/em&gt; working with the maximum possible bandwidth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when should a slave broadcast data?</title><link>https://devzone.nordicsemi.com/thread/15550?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2014 12:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:784dffe9-345e-42d5-bfaf-d46f2bdad518</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;I assume you have set the channel type to be a bidirectional slave/master channel since you are able to get some packages through. Reading more closely through your text I see that you have already found the explanation, it is too late to run the sd_ant_broadcast_message_tx() on the slave side after you have received the package from the master. So the data from the slave to the master will always have to be a package behind in that sense. You have to write to the sd_ant_broadcast_message_tx() for every time you want it to. So after the RX_event on the slave you have to use the sd_ant_broadcast_message_tx() in order to send data back to the master at the next connection event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when should a slave broadcast data?</title><link>https://devzone.nordicsemi.com/thread/15549?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2014 21:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f328fdc-b9db-464a-8a1b-3cb69d8fa6c5</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;The channel period is 20ms. Both sides use the exactly same software and thus the same configuration of the channel period. Yes, I&amp;#39;ve search for help in the examples but found only the ANT tx/rx examples in the nRF51 SDK, but this examples implement just unidirectional communication. In this example, the master is sending, the slave is receiving. What we are trying to achive is &lt;em&gt;bidirectional&lt;/em&gt; communication as mentioned in ANT_Message_Protocol_and_Usage_Rev_5.1 chapter 5.1 (Figure 5-2.). -&amp;gt; the master is sending and receiving data from the slave. The slave is receiving data from the master and sending data back. Two independent streams of data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when should a slave broadcast data?</title><link>https://devzone.nordicsemi.com/thread/15548?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2014 15:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c66b376-d346-4f1b-8db6-932e915d566e</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;What&amp;#39;s the timing on the ANT channel that you open. Are you using the default timing interval between events or are you changing this somehow? You should just have to setup both RX and TX side with the same parameters with regard to timing and you should see them all. &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/6.1.0/s210/html/ant_examples_broadcast.html"&gt;Have you had a look at the ANT tx/rx example in the nRF51 SDK?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>