<?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 correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10520/how-to-correctly-set-channel-map-of-next-connection</link><description>I&amp;#39;m using s130_nrf51_2.0.0-4.alpha as central and do some testing with channel map.
I set the channel map before I&amp;#39;m trying to connect to a peripheral with: 
 ble_opt_t opt;
 memset(&amp;amp;opt, 0, sizeof(opt));
 opt.gap_opt.ch_map.ch_map[0] = 0xFF;
 opt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Dec 2015 13:09:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10520/how-to-correctly-set-channel-map-of-next-connection" /><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39130?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2015 13:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d23f92d-3349-4bb6-a159-14573105a74f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;An internal request have been made.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39129?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2015 12:27:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f443740d-e8cc-4bfc-bfdc-5845c23b656a</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I will check this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39128?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2015 12:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97b547b-27e3-47ab-8622-55e18fb47375</guid><dc:creator>Gregor Bader</dc:creator><description>&lt;p&gt;What are our options to get a softdevice which is able to set the channel map beginning with the CONNECTION REQUEST packet?
Our communication cycle is not longer than 10 connection events!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39127?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 14:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1e0db3-813f-4839-8e0f-3f65e408cab6</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;When setting the channel map, it applies to all current and future connections, so you can set it whenever you want. The packet with the channel map will be sent to the peripheral 10 connection events after the connection request packet. This means that if you use a connection interval of 20ms, the channel map will not be updated before at least 200ms after the connection request packet. The reason for this is backwards compatibility with previous nordic devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39134?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 09:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfc01356-07cd-4ce8-ae65-f7f9020a9f4d</guid><dc:creator>Gregor Bader</dc:creator><description>&lt;p&gt;It is important to know which event or when the channel map is updated. I&amp;#39;m working with very short connection durations (~200ms) and thought the channel map is used from beginning of connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39133?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 09:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:545ca5a7-50fb-4687-8435-a296e681838b</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I was just using the connection parameter update request &lt;strong&gt;event&lt;/strong&gt; to read the channel map since I knew this happened 5 seconds after the connection. The channel map have been updated some time in between. Feel free to start a timer (e.g. app_timer) on connection and read the channel map sooner to see when it changes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39132?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 09:46:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e183aea-4ec9-4f9c-b123-22cd6a301d8b</guid><dc:creator>Gregor Bader</dc:creator><description>&lt;p&gt;Regarding your test, is the channel map only updated with &amp;quot;connection parameter update request&amp;quot;???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39131?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 09:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcf4925a-ca57-4591-ba27-c587f92e1b11</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I tested it before calling sd_ble_gap_connect(...) as in your question and it worked. I checked in the connection parameter update request event (5 seconds after connection) .
For the time it takes to change the map, this is from the bluetooth spec: &amp;quot;If this command is used, updates should be sent within 10 seconds, of the Host knowing that the channel classification has changed. The interval
between two successive commands sent shall be at least 1 second.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39135?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 06:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a263b17-d00b-4d99-853d-5200baddffbe</guid><dc:creator>Gregor Bader</dc:creator><description>&lt;p&gt;Your reference seems to only apply when changing the channel map during an active connection. But I want to change it before a connection.&lt;/p&gt;
&lt;p&gt;And what is &amp;quot;some time&amp;quot; ? 1s or 1 minute?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly set channel map of next connection?</title><link>https://devzone.nordicsemi.com/thread/39126?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 13:09:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09e76e43-7c36-4efe-a10e-b5e47ea39001</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Setting the channel map may take some time, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v1.0.0/structble__gap__opt__ch__map__t.html"&gt;here&lt;/a&gt;. Try to call &lt;code&gt;sd_ble_opt_get(...)&lt;/code&gt; at a later point in time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>