<?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>nRF5SDK ble_app_pwr_profiling : advertising_init error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109160/nrf5sdk-ble_app_pwr_profiling-advertising_init-error</link><description>Hi, 
 I want to add a broadcast name to this example , but I get an error after using it. 
 This example does not add LOG. What can I do to add a broadcast name? 
 
 Environment: nRF5SDK 17.1.0, nRF52840DK, ble_app_pwr_profiling.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Mar 2024 08:40:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109160/nrf5sdk-ble_app_pwr_profiling-advertising_init-error" /><item><title>RE: nRF5SDK ble_app_pwr_profiling : advertising_init error</title><link>https://devzone.nordicsemi.com/thread/473565?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 08:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abb06d82-f39c-4ca4-8515-0693d81122b8</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I am glad to hear that it now works as expected, great! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5SDK ble_app_pwr_profiling : advertising_init error</title><link>https://devzone.nordicsemi.com/thread/473532?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 01:14:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0321106b-9302-407e-a80d-14ae8cbb50a8</guid><dc:creator>kenlove</dc:creator><description>&lt;p&gt;Hi&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Karl&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I ignored the length of the broadcast expansion package.&amp;nbsp;Now it can work normally.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your support！&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Kenlove&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5SDK ble_app_pwr_profiling : advertising_init error</title><link>https://devzone.nordicsemi.com/thread/473373?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 09:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3203b0d0-f955-4b0e-8b84-13872aaeb5de</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Kenlove,&lt;/p&gt;
[quote user="kenlove"]I am very happy to receive your reply.[/quote]
&lt;p&gt;No problem, I am happy to help! :)&amp;nbsp;&lt;/p&gt;
[quote user="kenlove"]&lt;p&gt;&lt;span&gt;You can see in the code that the device name has been called.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use other examples for comparison. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I added the broadcast name type in the broadcast initialization.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The device name is set as part of the GAP initialization.&lt;br /&gt;&lt;br /&gt;The device name will also be truncated or clipped in order to accommodate the configured advertising data, so if you fill up the entire advertisement packet length (max 32 bytes, with each individual datafield requiring 2 byes of overhead) then the name will be shortened or removed.&lt;br /&gt;Please decrease the size of your manufacturer specific data to see your advertised name, or offload some of your data to a Scan Response packet instead, to effectively gain an additional 32 bytes to your advertising size.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5SDK ble_app_pwr_profiling : advertising_init error</title><link>https://devzone.nordicsemi.com/thread/473357?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 08:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4486486-1447-4daf-8c47-a70744cd1c89</guid><dc:creator>kenlove</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Karl&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am very happy to receive your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The DEVICE_NAME has been set. But the DEVICE_NAME&amp;nbsp;was not broadcast.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1710233603534v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1710233756866v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can see in the code that the device name has been called.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use other examples for comparison. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I added the broadcast name type in the broadcast initialization.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1710233573377v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenlove&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5SDK ble_app_pwr_profiling : advertising_init error</title><link>https://devzone.nordicsemi.com/thread/473354?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 08:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:731e3e57-fb9c-4080-8e3b-4f663c9a92aa</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]What can I do to add a broadcast name?[/quote]
&lt;p&gt;Please change the&amp;nbsp;DEVICE_NAME define in the main.c to change the name used for advertising.&lt;/p&gt;
[quote user=""]but I get an error after using it.[/quote]
&lt;p&gt;What error do you get?&lt;br /&gt;Please make sure to add DEBUG in your preprocessor defines, like shown in the included image:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2018.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;This will make you logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>