<?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 send 31 bytes during advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64876/how-to-send-31-bytes-during-advertising</link><description>Hi all, 
 I have some issue setting up the advertising data on my nRF52840 Dongle. I&amp;#39;m using the ble_template to develop my software and in my application i need to fill all the 31 bytes available with advertising. Following the guides that i found online</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Aug 2020 13:38:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64876/how-to-send-31-bytes-during-advertising" /><item><title>RE: How to send 31 bytes during advertising</title><link>https://devzone.nordicsemi.com/thread/265132?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 13:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c37be39e-0c52-4d45-99ae-f1a56b89d4d8</guid><dc:creator>Salvo</dc:creator><description>&lt;p&gt;Thanks a lot for the explanation, now&amp;nbsp;&lt;span&gt;the numbers check out!&lt;/span&gt;&lt;/p&gt;
&lt;div style="left:615px;position:absolute;top:23px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send 31 bytes during advertising</title><link>https://devzone.nordicsemi.com/thread/264941?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 19:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b5788a1-21a3-4f76-882b-40d82d19a8bf</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;there are few things you didn&amp;#39;t take into account:&lt;/p&gt;
&lt;p&gt;- each record starts with two-byte header (record length + record type)&lt;/p&gt;
&lt;p&gt;- company ID is a part of manufacturer data record&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;include_appearance means that your advertising should include 16-bit appearance&amp;nbsp;value&lt;/p&gt;
&lt;p&gt;- there is additional &amp;quot;flags&amp;quot; record (8-bit) that is mandatory for connectable advertisements&lt;/p&gt;
&lt;p&gt;Now let&amp;#39;s count: 1+1+4 (name), 1+1+2+14 (company id and manuf.data), 1+1+2 (appearance), 1+1+1 (flags) - total 31 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send 31 bytes during advertising</title><link>https://devzone.nordicsemi.com/thread/264924?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 16:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29be697d-4884-48fc-8e53-823c7180246b</guid><dc:creator>Salvo</dc:creator><description>&lt;p&gt;Update:&lt;br /&gt;Commenting the following lines in&amp;nbsp;the advertising_init function of the main.c file:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;//init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
//init.advdata.uuids_complete.p_uuids  = m_adv_uuids;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;now i can send 20 bytes divided in:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;4 bytes for the name of the device&lt;/li&gt;
&lt;li&gt;2 bytes for the company ID&lt;/li&gt;
&lt;li&gt;14 bytes for the manufacturer data&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Are there some other data sent by this template?&lt;/p&gt;
&lt;p&gt;My main.c file:&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8625.main.c"&gt;devzone.nordicsemi.com/.../8625.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>