<?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>Changing SensorID and Type during runtime</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7192/changing-sensorid-and-type-during-runtime</link><description>Dear All, 
 I can read two different ANT sensors sucessfully with my target system, but initialization of sensors only works first time. When changing sensorIDs of simulator and target during runtime target will not show sensor values anymore. 
 This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jun 2015 10:01:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7192/changing-sensorid-and-type-during-runtime" /><item><title>RE: Changing SensorID and Type during runtime</title><link>https://devzone.nordicsemi.com/thread/25425?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2015 10:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:875802e5-a6a9-4e1d-8fb1-d2053b0a41b6</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Dear All,&lt;/p&gt;
&lt;p&gt;thanks very much for your help. Seems solved.&lt;/p&gt;
&lt;p&gt;Changes to power sensor settings worked fine while HRM did not.&lt;/p&gt;
&lt;p&gt;Comparing code, HRM init additionally was executing:
sd_ant_network_address_set(ANTPLUS_NETWORK_NUMBER, m_network_key);&lt;/p&gt;
&lt;p&gt;Setting changes seem to work fine on both sensors after removing network address setting.&lt;/p&gt;
&lt;p&gt;Best regards,
Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing SensorID and Type during runtime</title><link>https://devzone.nordicsemi.com/thread/25424?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2015 06:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f421dc-1124-4fd5-b0f8-708e94f97968</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Thanks Petter, I have tried this without success. What is the recommended API procedure to re-establish a broken link (EVENT_RX_SEARCH_TIMEOUT) or changing sensor settings (i.e. ID)?&lt;/p&gt;
&lt;p&gt;I am looking for something like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;sd_ant_channel_close(ant_channel);&lt;/li&gt;
&lt;li&gt;sd_ant_network_address_set(ANTPLUS_NETWORK_NUMBER, m_network_key);&lt;/li&gt;
&lt;li&gt;sd_ant_channel_assign(HRMRX_ANT_CHANNEL, HRMRX_CHANNEL_TYPE, ANTPLUS_NETWORK_NUMBER,HRMRX_EXT_ASSIGN);
4.sd_ant_channel_id_set(HRMRX_ANT_CHANNEL, sensorID,HRMRX_DEVICE_TYPE,  HRMRX_TRANS_TYPE);&lt;/li&gt;
&lt;li&gt;sd_ant_channel_radio_freq_set(HRMRX_ANT_CHANNEL, ANTPLUS_RF_FREQ);&lt;/li&gt;
&lt;li&gt;sd_ant_channel_period_set(HRMRX_ANT_CHANNEL, HRMRX_MSG_PERIOD);&lt;/li&gt;
&lt;li&gt;sd_ant_channel_open(HRMRX_ANT_CHANNEL);&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing SensorID and Type during runtime</title><link>https://devzone.nordicsemi.com/thread/25423?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 20:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c85c1f9c-9227-4cda-9ddc-84e6951049b4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you tried to unassign the channel with sd_ant_channel_unassign()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing SensorID and Type during runtime</title><link>https://devzone.nordicsemi.com/thread/25422?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 18:04:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d04d5d31-b5ce-4be0-b62d-5fd619aff796</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;My system is trying to receive ant data from different sensors. These sensors may differ in type, but for sure differ in ID. To switch from one to an other,I do close the channel and reopen channel with different settings. Sensors will work on first channel open after startup, but not on following attempts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing SensorID and Type during runtime</title><link>https://devzone.nordicsemi.com/thread/25421?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 12:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c7d9ef7-cc82-483c-8c16-16c09c765b40</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m unable to reproduce this. I&amp;#39;m using SDK8.1.0, SoftDevice S210 v4.0.1. I have&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ant_channel_tx_broadcast_setup();
sd_ant_channel_open(HRMTX_ANT_CHANNEL);    
ant_channel_tx_broadcast_setup();   
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in \examples\ant\ant_hrm\hrm_tx&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>