<?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>Advdata packet sequence</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7760/advdata-packet-sequence</link><description>Hello all 
 I am trying to better understand the sequence in which all the data is encoded in to the advdata structure. This includes device name, company identifier, manuf specific data, UUID&amp;#39;s etc. Is there any documentation which details in which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2015 16:59:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7760/advdata-packet-sequence" /><item><title>RE: Advdata packet sequence</title><link>https://devzone.nordicsemi.com/thread/27634?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 16:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c8d20e1-3c1b-4663-ab9c-549f9b6752d2</guid><dc:creator>pltv</dc:creator><description>&lt;p&gt;Just a small additional comment that the manuf specifc data has first 2 bytes as the company identifier. Spent some time to figure this out&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advdata packet sequence</title><link>https://devzone.nordicsemi.com/thread/27633?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 16:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a633df0f-9838-4151-8ecf-576daec7d2fb</guid><dc:creator>pltv</dc:creator><description>&lt;p&gt;Thanks. that covers it. Upgraded this to an answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advdata packet sequence</title><link>https://devzone.nordicsemi.com/thread/27632?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 13:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bfe686-8d7a-47db-a540-3787958cf394</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;It is always [Length (1 byte), Type (1 byte), Data (&lt;Length-1&gt; bytes)] repeated over and over. The length byte is not included in the total length. The example you posted would be read as 9 bytes, type 8 (Shortened Local Name), (9-1) bytes of name in non-null-terminated UTF-8 &amp;quot;HHHHHHHH&amp;quot;. The next part is 3 bytes long, type 25 (Appearance), 2 bytes of appearance (0x0000 = Unknown), etc. Go by the numbers &lt;a href="https://www.bluetooth.org/en-us/specification/assigned-numbers/generic-access-profile"&gt;found here&lt;/a&gt; and the descriptions found in the Core Spec Supplement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advdata packet sequence</title><link>https://devzone.nordicsemi.com/thread/27631?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 13:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbb1a422-f6b2-493b-ab7a-5c3098ede346</guid><dc:creator>pltv</dc:creator><description>&lt;p&gt;Which code you are referring to that i should look at? Is there any documentation of the standard encode sequence&lt;/p&gt;
&lt;p&gt;Also if i have the below advdata, how would i decode it?&lt;/p&gt;
&lt;p&gt;9 8 72 72 72 72 72 72 72 72 3 25 0 0 2 1 6 3 3 13 24 5 255 89 0 42 125&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advdata packet sequence</title><link>https://devzone.nordicsemi.com/thread/27630?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 13:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:758df90a-4f8f-48a0-afcc-f657089e9ea7</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You can put it in any order you like. If you want to see the order in which the standard Nordic encoded encodes it, look at the code.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve always thought it rather odd that it doesn&amp;#39;t encode, or at least give you the option to encode, the name at the end instead of the start, as that would at least give it the option to fill most of the packet up and then use a short name instead of a full one if there wasn&amp;#39;t room. But it doesnt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>