<?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>beacon example error with nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68661/beacon-example-error-with-nrf52840</link><description>Hello, 
 I am using the ble_app_beacon example on a nRF52840 dongle. 
 Without changing the code I am able to load and use it on my dongle. 
 Now, I am trying to add some info to the beacon just to make some tests and in particular I am tring to give</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Nov 2020 09:13:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68661/beacon-example-error-with-nrf52840" /><item><title>RE: beacon example error with nRF52840</title><link>https://devzone.nordicsemi.com/thread/281470?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 09:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93779758-62b1-47c0-934e-5eb3727bdba8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I found the link that I was looking for earlier:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile/"&gt;This list shows the list of advertising packet fields&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Advertising packets are built up by several chunks, and each chunk consists of:&lt;/p&gt;
&lt;p&gt;[length], [type], [payload]&lt;/p&gt;
&lt;p&gt;All the data in m_beacon_info in the ble_app_beacon example is added to the type&amp;nbsp;&lt;/p&gt;
&lt;p&gt;0xFF &amp;quot;Manufacturer Specific Data&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hence, any name you put inside this will not be added as it&amp;#39;s own chunk with type:&lt;/p&gt;
&lt;p&gt;0x09 &amp;quot;Complete Local Name&amp;quot;.&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: beacon example error with nRF52840</title><link>https://devzone.nordicsemi.com/thread/281459?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 08:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39892d67-32ff-4b00-8939-0e89f5b58cec</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I recommend that you get hold of a DK for development. The reason for this is that you can&amp;#39;t debug using the nRF52840 dongle, and debugging is a really useful tool while developing. Development without being able to monitor the logs or stepping through the code is pretty much blind development.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, if you intend to both send and receive, I will recommend you to use one of the other examples that use the advertising module. This may not make sense because you would think that this example already does this, but it isn&amp;#39;t. Check out the examples ble_app_uart and how it sets up its advertisement, and then check out ble_app_uart_c for an example that is scanning.&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: beacon example error with nRF52840</title><link>https://devzone.nordicsemi.com/thread/281400?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 17:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492ffb1d-b7c5-472c-8892-9f2e9ec6e3e5</guid><dc:creator>Andrea_Furlani</dc:creator><description>&lt;p&gt;Yes, I am using SDK 17.0.2.&lt;/p&gt;
&lt;p&gt;I am using this example because I need to progam the dongle to send and receive data in broadcast mode and this is useful to understand how receive data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beacon example error with nRF52840</title><link>https://devzone.nordicsemi.com/thread/281390?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 16:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b36a3b8f-0ec9-44a9-9a70-4e587d15535d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What SDK version do you use?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll assume it is the latest, SDK17.0.2 until you say otherwise.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The beacon example is a very simplified hard coded beacon advertising example, and modifying it&amp;#39;s advertising data requires some knowledge about how the advertising packet is put together.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After looking into it, there is no super simple way to add the name to the advertisement using this example. The reason for this is that the&amp;nbsp;m_beacon_info array is the &amp;quot;custom manufacturer data&amp;quot; field in the advertisement, which can not hold the name directly. Look at how the function:&lt;/p&gt;
&lt;p&gt;ble_advdata_encode()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;encodes the name (at the end of the function), and see if you can implement it so that it includes the name in the advertisement.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, I suggest you look into how one of the examples that already include the name in the advertisement do so, such as the ble_app_uart example.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>