<?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>ANT connection event - How to know when connects</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5732/ant-connection-event---how-to-know-when-connects</link><description>I&amp;#39;m using SDK 7.1, PCA10028 eval board, SD310 2.0.1, MCP 3.6.0.8331 
 I have an ANT device, that on a button press, it must wake up, connect to an ANT channel, and send a few bytes of data. 
 The device is configured as the Master of the channel. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Feb 2015 11:41:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5732/ant-connection-event---how-to-know-when-connects" /><item><title>RE: ANT connection event - How to know when connects</title><link>https://devzone.nordicsemi.com/thread/20044?ContentTypeID=1</link><pubDate>Thu, 26 Feb 2015 11:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba560caa-bef2-4a10-9d3a-063908895c8f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;pre&gt;&lt;code&gt;#define EVENT_CONNECTION_START                     ((uint8_t)0x3B) ///&amp;lt; Application generated event used to indicate when starting a connection to a channel
#define EVENT_CONNECTION_SUCCESS                   ((uint8_t)0x3C) ///&amp;lt; Application generated event used to indicate when successfuly connected to a channel
#define EVENT_CONNECTION_FAIL                      ((uint8_t)0x3D) ///&amp;lt; Application generated event used to indicate when failed to connect to a channel
#define EVENT_CONNECTION_TIMEOUT                   ((uint8_t)0x3E) ///&amp;lt; Application generated event used to indicate when connecting to a channel has timed out
#define EVENT_CONNECTION_UPDATE                    ((uint8_t)0x3F) ///&amp;lt; Application generated event used to indicate when connection parameters have been updated
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;In ant_parameters.h there is an
EVENT_CONNECTION_SUCCESS, but this
event is never triggered - does it
only apply to the slave side of the
connection?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;These are internal events passed between the dual ANT and BLE stack of the S310 softdevice, these internal events should not be used by application developers and should be ignored.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Is there a status call or event that
lets the ANT master know when master
and slave are synchronized
(connected)?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There is no such status or event, the ANT master will just send messages with a certain interval regardless if a slave is listening or not. If this is something you require you need to implement it into the application. You could use sd_ant_acknowledge_message_tx(), if the slave gets the message you will get &lt;code&gt;EVENT_TRANSFER_TX_COMPLETED&lt;/code&gt;, if not you will get &lt;code&gt;EVENT_TRANSFER_TX_FAILED&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>