<?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 set the ANT shared address to receive on NRF51422 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4252/how-to-set-the-ant-shared-address-to-receive-on-nrf51422</link><description>what is the C function ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Nov 2014 18:40:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4252/how-to-set-the-ant-shared-address-to-receive-on-nrf51422" /><item><title>RE: How to set the ANT shared address to receive on NRF51422 ?</title><link>https://devzone.nordicsemi.com/thread/15182?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 18:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b6932c7-5fff-4fe3-a15b-4bc47a4bb19b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please try to follow the &lt;a href="https://devzone.nordicsemi.com/question/17775/how-does-nordic-developer-zone-work/"&gt;&lt;strong&gt;guidelines&lt;/strong&gt;&lt;/a&gt; when using Nordic Developer Zone. This is to ensure that you get the best possible answers, and that your questions are useful to others. If you don&amp;#39;t want to follow them I recommend you to add a case in the MyPage support portal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the ANT shared address to receive on NRF51422 ?</title><link>https://devzone.nordicsemi.com/thread/15181?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 16:55:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4e06223-3e3c-4ae1-8512-435caf298d28</guid><dc:creator>carlotti</dc:creator><description>&lt;p&gt;Hello Petter, you could simply send me a C example code how to set correctly a shared address, or may be you think Dynastream could help me about this topic ? Please give me a functionnal piece of C code? Thank you.
Best regards
Charles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the ANT shared address to receive on NRF51422 ?</title><link>https://devzone.nordicsemi.com/thread/15180?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 14:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40294b55-6ddf-4f66-ae49-e49b97a9ad3a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please edit your question to include the information. If you want me to test your application, please upload your complete project and include information about chip revision, SDK version and SoftDevice version. Remember that this is public, if your code is secret, please create a case int he MyPage support portal, and add it there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the ANT shared address to receive on NRF51422 ?</title><link>https://devzone.nordicsemi.com/thread/15184?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 14:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21673c84-89c6-4cdd-b7e8-3e6245f92bd4</guid><dc:creator>carlotti</dc:creator><description>&lt;p&gt;Yes, I ever read it, but I am not able to receive on the shared address, only the 0x0000 shared address frame are received. best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the ANT shared address to receive on NRF51422 ?</title><link>https://devzone.nordicsemi.com/thread/15179?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 14:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07552afa-5567-4258-84dd-2cd7a6abcc66</guid><dc:creator>carlotti</dc:creator><description>&lt;p&gt;hello petter this is my slave channel cfg :
//Slave channel
memset(&amp;amp;ch_slave_shared,0,sizeof(ch_slave_shared));
ch_slave_shared.ch_ID=_ANT_CHANNEL_SLAVE_ID;
ch_slave_shared.ch_type=CHANNEL_TYPE_SHARED_SLAVE;
ch_slave_shared.ch_ext_byte=EXT_PARAM_AUTO_SHARED_SLAVE;
ch_slave_shared.ch_transmission_type=0x03;
ch_slave_shared.ch_device_type=_ANT_HUB_LINK_ETABLISHING_INFO_TYPE; //On reçoit ce type de données
ch_slave_shared.ch_device_number=ANT_COMMON_DEVICE_NUMBER; //master id info to receive
ch_slave_shared.ch_period=ANT_COMMON_CHANNEL_PERIOD;
ch_slave_shared.ch_freq=ANT_COMMON_FREQUENCY;
ch_slave_shared.ch_hight_prio_timeout=7; //par pas de 2.5s
ch_slave_shared.ch_low_prio_timeout=2;
ch_slave_shared.CallBack_p=(type_CallBack_p)ant_rx_shared_channel_process;&lt;/p&gt;
&lt;p&gt;And after when the channel is opened, I set the shared channel address:&lt;/p&gt;
&lt;p&gt;void hub_set_shared_address(ant_channel_params_t &lt;em&gt;ant_ch_p,U16 device_unic_id,U8 * payload_p)
{
memcpy(payload_p,(U8&lt;/em&gt;)&amp;amp;device_unic_id,sizeof(device_unic_id));
sd_ant_broadcast_message_tx(ant_ch_p-&amp;gt;ch_ID, ANT_STANDARD_DATA_PAYLOAD_SIZE, payload_p);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;hub_set_shared_address(&amp;amp;ch_slave_shared,u16MyUnicId,ch_slave_shared.payload);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the ANT shared address to receive on NRF51422 ?</title><link>https://devzone.nordicsemi.com/thread/15183?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 13:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd04a2e-a74e-47eb-8b7b-0f62d307ddbb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;An implementation using Shared Channels is explained in Section 8.2 in the &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7356.D00000652_5F00_ANT_5F00_Message_5F00_Protocol_5F00_and_5F00_Usage_5F00_Rev_5F00_5.1.pdf"&gt;ANT Message Protocol and Usage&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;On the slave side, once the channel is
opened, the host should send a single
broadcast message to ANT with the
first one or two bytes indicating Node
B’s shared channel address. This
configures ANT to listen to messages
that are addressed to Slave Node B.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the ANT shared address to receive on NRF51422 ?</title><link>https://devzone.nordicsemi.com/thread/15178?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 13:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4fa9286-5ec3-45d5-998b-47072555e582</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please try to include details about what you have tried and exactly what you are trying to achieve. &lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/blogs/7/how-should-i-ask-my-question/"&gt;This&lt;/a&gt;&lt;/strong&gt; may be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>