<?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>Including channel in advertisement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79382/including-channel-in-advertisement</link><description>Hello, 
 I&amp;#39;m trying to include a byte in the advertised data that indicates on which channel the advertisement is being sent, 0 = channel 37, 1 = channel 38, 2 = channel 39. Is there a way to get the channel from the SoftDevice and update the advertisement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Sep 2021 07:16:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79382/including-channel-in-advertisement" /><item><title>RE: Including channel in advertisement</title><link>https://devzone.nordicsemi.com/thread/328714?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 07:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f8eb2b-54d4-4a82-bd06-6a602f0f2777</guid><dc:creator>Kenneth</dc:creator><description>[quote user="jeg223"]I would like to keep advertising on the 3 channels, but I would like to include the channel in the payload.&amp;nbsp; I&amp;#39;m guessing the channel is not available to the iPhone app, so it is included in the Manufacturer Data section of the advertisement.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Unfortunately it&amp;#39;s not possible to update the advertisement dynamically the way you want. The only way would be to include manufacturer data and use one channel, and one channel is not recommended.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="jeg223"]Also, I noticed in Wireshark that the channels are always in the same order: 37, 38, 39.&amp;nbsp; Will this always be the case?&amp;nbsp;[/quote]
&lt;p&gt;For nordic softdevice controller I expect this to always be the case.&amp;nbsp;&lt;/p&gt;
[quote user="jeg223"]Is there a callback I can use to update the payload after each channel is transmitted?[/quote]
&lt;p&gt;Sorry no, the softdevice controller does not allow to update the packet in the middle of a BLE event.&lt;/p&gt;
&lt;p&gt;Kenneth&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including channel in advertisement</title><link>https://devzone.nordicsemi.com/thread/328641?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 14:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a55580d8-fc51-4392-b2ed-8bc5c3710749</guid><dc:creator>jeg223</dc:creator><description>&lt;p&gt;I would like to keep advertising on the 3 channels, but I would like to include the channel in the payload.&amp;nbsp; I&amp;#39;m guessing the channel is not available to the iPhone app, so it is included in the Manufacturer Data section of the advertisement.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any suggestion for putting the channel in the payload?&lt;/p&gt;
&lt;p&gt;Also, I noticed in Wireshark that the channels are always in the same order: 37, 38, 39.&amp;nbsp; Will this always be the case?&amp;nbsp; Is there a callback I can use to update the payload after each channel is transmitted?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including channel in advertisement</title><link>https://devzone.nordicsemi.com/thread/328502?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 07:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de9f098-e42b-4f9a-b3bd-64c94c93cf9f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I recommend to use the recommended advertising intervals, but don&amp;#39;t modify the number of advertising channels.&lt;/p&gt;
&lt;p&gt;Reason is that&amp;nbsp;if you only advertise on 1 channel you reduce the chance of being discovered, because the scanner will only be able to scan 1 channel at a time. Also have in mind that in BLE there is a 0-10ms random delay for each advertising interval according to BLE specifications, and I assume Apple are aware of that. Their scan window should thereby&amp;nbsp;be broad enough to account for advertising on 3 channels and the random delay.&lt;/p&gt;
&lt;p&gt;All that said, here is an example on how to setup 1 channel:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38695/advertising-and-scanning-on-single-channel/149469#149469"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38695/advertising-and-scanning-on-single-channel/149469#149469&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>