<?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>Fully understand advertising packet content?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58839/fully-understand-advertising-packet-content</link><description>I configured a NRF52832 with non-scannable and non-connectable as well as scannable/connectable advertising. Everything is working fine. 
 But I want to fully understand the advertising and scan response packets. I did found a couple of tickets here,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Mar 2020 11:26:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58839/fully-understand-advertising-packet-content" /><item><title>RE: Fully understand advertising packet content?</title><link>https://devzone.nordicsemi.com/thread/239080?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 11:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41095789-e58d-4f5a-830e-f5501ba4a7d3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh. So it is not part of the advertising data (or in a way it is).&amp;nbsp;It looks like the serial protocol that the connected DK or dongle (in your case dongle) use to pass the radio data to the computer. Nothing you need to worry about.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="an-erd"]This sequence (0a 2a c6 1e 51 c6) is clear, too, that&amp;#39;s just the devices Bluetoth address, but what about the remainder?[/quote]
&lt;p&gt;&amp;nbsp;No, the address is found in:&lt;/p&gt;
&lt;p&gt;peerAddr:[address:C6:51:1E:C6:2A:0A&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(from your log).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I realize first now that you are in the logging module for the nRF Connect for Desktop. This is actually most for debugging nRF Connect. Not really related to BLE. All the information that you need is found in the actual application:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-222ebd97a5094cd3a06d287e80c33690/pastedimage1583839566743v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fully understand advertising packet content?</title><link>https://devzone.nordicsemi.com/thread/239029?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 09:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83d142f-baf7-4eda-a517-f89183c81f98</guid><dc:creator>an-erd</dc:creator><description>&lt;p&gt;The log entries I provided in my last message is produced by a clean unmodified version of the SDK example&amp;nbsp;&lt;span&gt;ble_app_beacon. So, it&amp;#39;s exactly as provided with SDK 16.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The log file entry is produced with nRF Connect and the NRF52840 dongle, so also straight forward.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Don&amp;#39;t care about the manufacturer specific data, that&amp;#39;s everything well understood. I&amp;#39;m only interested in the beginning, so this data:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;02 1d 00 ff ff 02 0a 2a c6 1e 51 c6 00 00 01 00 00 30 82 d1 06 1e 01 &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This sequence (0a 2a c6 1e 51 c6) is clear, too, that&amp;#39;s just the devices Bluetoth address, but what about the remainder?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fully understand advertising packet content?</title><link>https://devzone.nordicsemi.com/thread/239024?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 09:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03d85312-77cf-4b82-8cec-badc31ce464e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh, I missed the 02 01 04 1a ff ... part.&lt;/p&gt;
&lt;p&gt;02 01 04 = len: 2 type: 01 (flags), value: 04 (BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED).&lt;/p&gt;
&lt;p&gt;1a ff&amp;nbsp; ... = len: 26, type: ff (manufacturer specific data), and the rest is probably the manufacturer specific data that you have set.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Where does that log come from? Is that one of our examples scanning?&lt;/p&gt;
&lt;p&gt;What did you set up the manuf.specific data to be?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fully understand advertising packet content?</title><link>https://devzone.nordicsemi.com/thread/238931?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 18:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:463c3a58-a47b-4f35-8ea9-a08b36be2bde</guid><dc:creator>an-erd</dc:creator><description>&lt;p&gt;Hello Edvin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for your reply. My code was based on the example ble_app_beacon. Just to be sure I tested with ble_app_beacon, too.&lt;/p&gt;
&lt;p&gt;The results are pretty much the same, since I only changed the manufaturer specific data, but did&amp;#39;nt touch everything else.&lt;/p&gt;
&lt;p&gt;With the original ble_app_beacon example I get the following lines:&lt;pre class="ui-code" data-mode="text"&gt;2020-03-09T17:55:51.876Z DEBUG GAP_EVT_ADV_REPORT/ADV_NONCONN_IND time:2020-03-09T17:55:51.875Z connHandle:65535 rssi:47 peerAddr:[address:C6:51:1E:C6:2A:0A type:randomStatic addrIdPeer:0] scanRsp:false advType:advNonconnInd gap:[adTypeFlags:[brEdrNotSupported,leOnlyLimitedDiscMode,leOnlyGeneralDiscMode] manufacturerSpecificData:89,0,2,21,1,18,35,52,69,86,103,120,137,154,171,188,205,222,239,240,1,2,3,4,195]
2020-03-09T17:55:51.978Z DEBUG    23/ 0 &amp;lt;-  [02 1d 00 ff ff 02 0a 2a c6 1e 51 c6 00 00 01 00 00 30 82 d1 06 1e 01 02 01 04 1a ff 59 00 02 15 01 12 23 34 45 56 67 78 89 9a ab bc cd de ef f0 01 02 03 04 c3 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:5 payload_length:35 data_integrity:1 header_checksum:b3 err_code:0x0
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I used nRF Connect Bluetooth Low Energy with an nRF52840 dongle. After my device (I used a different test beacon with address&amp;nbsp;C6:51:1E:C6:2A:0A was discovered I just copied those lines from the log file.&lt;/p&gt;
&lt;p&gt;Again, after 02 01 04 1a ff.... everything is clear.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;02 1d 00 ff ff 02 0a 2a c6 1e 51 c6 00 00 01 00 00 30 82 d1 06 1e 01 02 01 04 1a ff 59 00 02 15 01 12 23 34 45 56 67 78 89 9a ab bc cd de ef f0 01 02 03 04 c3 &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I&amp;#39;m interested in the data from the beginning up to that&amp;nbsp;&lt;span&gt;02 01 04 1a ff.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fully understand advertising packet content?</title><link>https://devzone.nordicsemi.com/thread/238853?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 13:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd79046f-6bbd-41d7-a91d-f2d5f86e4b1a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;All advertising packets consists of one or more chunks containing the following:&lt;/p&gt;
&lt;p&gt;1st byte in each chunk contains the length of the chunk. In your case 02.&lt;/p&gt;
&lt;p&gt;The second byte contains the advertising&amp;nbsp;chunk type, in your case 1d.&lt;/p&gt;
&lt;p&gt;Then the payload for that byte which is 00.&lt;/p&gt;
&lt;p&gt;Are you sure the 4th byte is ff? That should be the length of the next chunk, but it can&amp;#39;t be 0xff long.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you create the payload of the peripheral? Is it the ble_app_beacon example?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can check out this guide from silabs, which explains how the advertisement packets are set up:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2017/02/10/bluetooth_advertisin-hGsf"&gt;https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2017/02/10/bluetooth_advertisin-hGsf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In addition, this page contains all the advertising type fields:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile/"&gt;https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see, the type 1d is&amp;nbsp;&lt;span&gt;Simple Pairing Hash C-256. Check out &lt;a href="https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=282152" rel="noopener noreferrer" target="_blank"&gt;Core specification supplement&lt;/a&gt; part A section 1.6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So what kinf of peripheral is this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>