<?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>NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85587/ncs1-9-0-or-ncs1-9-1-periodic_adv-work-error-in-nrf5340-dk</link><description>Hello, 
 NCS1.9.0 or NCS1.9.1 , Windows10 X64,VS Code,periodic_adv.default codes 
 with nRF52840-DK work fine. 
 but nRF5340-DK got error,as folow logs 
 &amp;quot;Failed to create advertising set (err -5)&amp;quot; 
 
 
 
 thanks 
 Best Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2022 09:18:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85587/ncs1-9-0-or-ncs1-9-1-periodic_adv-work-error-in-nrf5340-dk" /><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/364882?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 09:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fee9fe8-4591-4ccf-9573-4b16117b73cc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry for the slow response, I have been out of office for the last couple of weeks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are using the Zephyr controller you can set the static output power by using the BT_CTLR_TX_PWR configuration settings, as described &lt;a href="https://docs.zephyrproject.org/3.0.0/reference/kconfig/choice_422.html#choice-422"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are using the Nordic SoftDevice controller these configurations don&amp;#39;t work, and the only way to change the TX power is to do it like in the hci_pwr_ctrl sample I shared earlier.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/362685?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2022 01:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11a3f2df-b9f1-404c-80a2-1d9cae3bab7c</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for reply,&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;Do you need to set the power statically or dynamically?&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;i want to set maximum&amp;nbsp;statically&amp;nbsp;only.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/362592?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 12:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb151d27-fe9d-4ca4-af50-cd320f4607c7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
[quote user="yuyou"]&lt;div&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;Create a non-connectable non-scannable &lt;strong&gt;&lt;span style="color:rgba(255, 0, 0, 1);"&gt;DIRECTED&lt;/span&gt; &lt;/strong&gt;advertising set&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;Only some devices can receive data.&lt;/div&gt;
&lt;div&gt;how to do it?&lt;/div&gt;[/quote]
&lt;p&gt;This is not supported in the Bluetooth specification unfortunately. Periodic advertising can not be directed.&amp;nbsp;&lt;/p&gt;
[quote user="yuyou"]how to set max TX power and max GIAN&amp;nbsp; for long rang&amp;nbsp; (without nRF21540) ?[/quote]
&lt;p&gt;Do you need to set the power statically or dynamically?&lt;/p&gt;
&lt;p&gt;There is a sample in Zephyr showing how you can set the TX power for Bluetooth applications:&lt;br /&gt;&lt;a href="https://docs.zephyrproject.org/2.6.0/samples/bluetooth/hci_pwr_ctrl/README.html"&gt;https://docs.zephyrproject.org/2.6.0/samples/bluetooth/hci_pwr_ctrl/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/361345?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2022 06:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:718c5adf-7412-4a37-a65f-8f01257df749</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks for reply,&amp;nbsp;&amp;nbsp;you work carefully!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i delete it and rebuild,it work fine,can recv 202 byte,good!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648880813802v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;now,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First question:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; i want&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="color:#0000ff;"&gt;Create a non-connectable non-scannable &lt;strong&gt;&lt;span style="color:#ff0000;"&gt;DIRECTED&lt;/span&gt; &lt;/strong&gt;advertising set&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;Only some devices can receive data.&lt;/div&gt;
&lt;div&gt;how to do it?&lt;/div&gt;
&lt;div&gt;if&amp;nbsp;Peer address set to not NULL, periodic_sync will can&amp;#39;t recv.&lt;/div&gt;
&lt;div&gt;maybe&amp;nbsp;&lt;span&gt;periodic_sync&amp;nbsp; side also need set&amp;nbsp;Peer address?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Second question:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;how to set max TX power and max GIAN&amp;nbsp; for long rang&amp;nbsp; (without nRF21540) ?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/361007?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 11:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ff6af4-d4c7-4bbd-a1a6-4f893f540b03</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
[quote user="yuyou"]&lt;p&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;I can try to figure out if there is an easier way to detect duplicate packets on the receive side, so you don&amp;#39;t have to do this manually.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;that is great!&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I checked with the team, and it seems the SoftDevice controller doesn&amp;#39;t support this feature unfortunately. In other words it is necessary to check this manually, like I do in the example I sent.&amp;nbsp;&lt;/p&gt;
[quote user="yuyou"]&lt;span&gt;but when i add &lt;span style="color:rgba(255, 0, 255, 1);"&gt;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=202&lt;/span&gt; two side&amp;nbsp;or only adv side prj.conf bese on your project.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;sync side can&amp;#39;t recv data,maybe I&amp;#39;m missing something?&lt;/span&gt;[/quote]
&lt;p&gt;You only have to add this to the advertiser, the scanner will already be set up to support reception of long packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you see any error messages in the advertiser or scanner that could explain why you don&amp;#39;t receive anything?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/360636?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 01:53:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5926700f-c252-4f26-a93c-c5fd5815b1a6</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thank you very much,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;avoid packet loss&amp;nbsp;&amp;nbsp;is most important to&amp;nbsp;me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;I can try to figure out if there is an easier way to detect duplicate packets on the receive side, so you don&amp;#39;t have to do this manually.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;that is great!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;If you send a 200 byte payload every 50ms you should get 4 kByte/s easily.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;it is so good!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but when i add &lt;span style="color:#ff00ff;"&gt;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=202&lt;/span&gt; two side&amp;nbsp;or only adv side prj.conf bese on your project.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;sync side can&amp;#39;t recv data,maybe I&amp;#39;m missing something?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648604407654v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/493x168/__key/communityserver-discussions-components-files/4/pastedimage1648604511120v2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/360552?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 13:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33562242-040f-414f-8619-751b6fbc6577</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
[quote user="yuyou"]&lt;p&gt;If NCS can support each packet sending finished&amp;nbsp; will&amp;nbsp;&lt;span&gt;have a callback(without&amp;nbsp;&lt;/span&gt;bt_le_ext_adv_stop and restart&lt;span&gt;)&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;it is best to &lt;span style="color:rgba(0, 0, 255, 1);"&gt;bt_le_per_adv_set_data().&lt;span style="color:rgba(0, 0, 0, 1);"&gt;itcan reduce duplicate data.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;What is most important to you? To avoid duplicate data or to avoid packet loss?&lt;/p&gt;
&lt;p&gt;If you only send each packet once you will have much higher packet loss than if you send each packet multiple times, and this will surely have a negative impact on the user experience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can try to figure out if there is an easier way to detect duplicate packets on the receive side, so you don&amp;#39;t have to do this manually.&amp;nbsp;&lt;/p&gt;
[quote user="yuyou"]&lt;div&gt;i&amp;#39;ve add config to prj.conf&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# Allow for large Bluetooth data packets.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;CONFIG_BT_L2CAP_TX_MTU=252&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;CONFIG_BT_BUF_ACL_RX_SIZE=256&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;if set greater than 30, periodic_sync will can&amp;#39;t recv data.&lt;/p&gt;[/quote]
&lt;p&gt;If you increase the&amp;nbsp;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX parameter on the advertiser side you should be able to send longer advertise packets. I tested this myself by setting&amp;nbsp;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=202, and was able to send 200 byte long packets (200 bytes of data + 2 bytes of manufacturer ID).&lt;/p&gt;
&lt;p&gt;If you send a 200 byte payload every 50ms you should get 4 kByte/s easily.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/359911?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 07:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b517613-b1ee-45f0-ae1c-55d729e4eedc</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thank you very much, good job,great!&lt;/p&gt;
&lt;p&gt;If NCS can support each packet sending finished&amp;nbsp; will&amp;nbsp;&lt;span&gt;have a callback(without&amp;nbsp;&lt;/span&gt;bt_le_ext_adv_stop and restart&lt;span&gt;)&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;it is best to &lt;span style="color:#0000ff;"&gt;bt_le_per_adv_set_data().&lt;span style="color:#000000;"&gt;itcan reduce duplicate data.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;your codes can send 20 valid data per second, send 100byte at a time will be reached 2kByte/s;&lt;/p&gt;
&lt;p&gt;but now less than 30 bytes at a time.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648190597142v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;div&gt;i&amp;#39;ve add config to prj.conf&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# Allow for large Bluetooth data packets.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#0000ff;"&gt;CONFIG_BT_L2CAP_TX_MTU=252&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#0000ff;"&gt;CONFIG_BT_BUF_ACL_RX_SIZE=256&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;if set greater than 30, periodic_sync will can&amp;#39;t recv data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/359840?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 14:29:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04db5ad7-e9aa-4a9f-8bc2-8d8eb2a9de56</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In your screenshot you are not using the fastest possible advertising interval. To do that you should configure the periodic advertising parameters using the&amp;nbsp;BT_GAP_PER_ADV_MIN_INTERVAL define, instead of the BT_GAP_PER_ADV_FAST_INT_MIN_1 define.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to get this working myself, and I am able to get a reliable transfer when I update the advertise data every 40ms:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sequence_5F00_test_5F00_per_5F00_adv.zip"&gt;devzone.nordicsemi.com/.../sequence_5F00_test_5F00_per_5F00_adv.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The example I shared shows an example of implementing a sequence number, allowing me to identify retransmitted packets easily, and also detect when packets are lost.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Packet loss is not great when transmitting audio, but any wireless application is susceptible to packet loss, and this is something you need to handle somehow in the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/359696?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 02:19:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e11ec975-eb31-4a2a-b2df-b0f42d7c054c</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;i&amp;#39;ve&amp;nbsp; use bt_le_per_adv_set_param(...),&lt;/p&gt;
&lt;p&gt;30ms-60ms send one time,it is enough to (2kByte/s);&lt;/p&gt;
&lt;p&gt;The key is how to ensure that the packet is modified immediately after each sent.&lt;/p&gt;
&lt;p&gt;Otherwise,periodic_sync will recv &amp;quot;123123123789&amp;quot;&lt;/p&gt;
&lt;p&gt;it is repeat &amp;quot;123&amp;quot; and lost &amp;quot;456&amp;quot;&amp;nbsp; (&lt;span style="color:#ff0000;"&gt;audio data can&amp;#39;t do that&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/504x145/__key/communityserver-discussions-components-files/4/pastedimage1648087867032v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/502x463/__key/communityserver-discussions-components-files/4/pastedimage1648087800873v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/359587?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 11:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb164abc-2315-47a6-9747-c7e044a18f1c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1) Possibly the issue is that the advertising interval is too slow, which means you will send the advertise packets at a very slow rate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To use the quickest possible advertising interval you can change the call to&amp;nbsp;&lt;em&gt;bt_le_per_adv_set_param(..)&lt;/em&gt; like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_PARAM(BT_GAP_PER_ADV_MIN_INTERVAL, BT_GAP_PER_ADV_MIN_INTERVAL, BT_LE_PER_ADV_OPT_NONE));
if (err) {
	printk(&amp;quot;Failed to set periodic advertising parameters&amp;quot;
	       &amp;quot; (err %d)\n&amp;quot;, err);
	return;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it helps?&lt;/p&gt;
&lt;p&gt;2) A second suggestion is to not use the timeout feature, and simply run the&amp;nbsp;bt_le_per_adv_set_data(..) function on a timer at regular intervals to update the data without stopping advertising. Then you will most likely have less gap between sending the old and new packets, and you should get more advertise packets through.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/359478?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 03:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15beef56-677d-46c6-be9a-7dc0ccd30215</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thanks for help,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;my project is directed advertising low quality &lt;span style="color:#ff0000;"&gt;audio&lt;/span&gt;（&lt;span style="color:#0000ff;"&gt;2kByte/s&lt;/span&gt;),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;One-way communication,no reply.&amp;nbsp;need to send continuous audio data.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;i&amp;#39;ve try 500ms,when timeout less than 500ms periodic_sync can&amp;#39;t recv data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/514x53/__key/communityserver-discussions-components-files/4/pastedimage1648004836221v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Send data at least 20 times per second, 100 bytes each time,timeout must set 50ms. so&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;your approach doesn&amp;#39;t seem to achieve (2kByte/s),&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;whether nRF5340DK or nRF52840DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adv_5F00_sync_5F00_nRF5340DK_5F00_cpuapp_5F00_config.rar"&gt;devzone.nordicsemi.com/.../adv_5F00_sync_5F00_nRF5340DK_5F00_cpuapp_5F00_config.rar&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/359327?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 10:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b13e577-2b5d-4ea5-8c41-3bc04fe0f701</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I made some modifications to the periodic_adv sample in order to do this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/285510_5F00_periodic_5F00_adv.zip"&gt;devzone.nordicsemi.com/.../285510_5F00_periodic_5F00_adv.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Essentially I configure the sent callback, start advertising with a 3 second timeout, and reconfigure the data every time the sent callback occurs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that I don&amp;#39;t update the advertising directly in the sent callback, instead I use a semaphore to signal to the main loop that the advertising is ready to be restarted.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/358771?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 07:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:274e2d86-04cd-4221-89a2-11a6c38c0368</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thanks for reply,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;I know how to do the project of &lt;span style="color:#0000ff;"&gt;ble_app_uart&lt;/span&gt; in nRF SDK, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;but i do not know how to do in &lt;span style="color:#0000ff;"&gt;periodic_adv/sync&lt;/span&gt; NCS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;i just want to get a callback when send one data finished, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;and then immediately modify it to the next data for next advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;why is it difficult to achieve? NCS1.9 not support it at all.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/358764?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 07:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82252989-243b-4ffb-9c18-83c1e46605a0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Most likely you need to include some kind of sequence counter in the payload, so that the receiver knows when it is receiving a repeated payload, and when it is receiving new data. Then the receiver should be able to assemble the data in the right order, and also recognize if it has lost some packets completely (if the sequence number suddenly increases by more than one).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sequence number is essentially just a counter that you increment every time you are updating the payload with new data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/358520?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 03:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62cfe217-66b4-4a86-805d-061459cb0e13</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/465x51/__key/communityserver-discussions-components-files/4/pastedimage1647486008873v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/462x52/__key/communityserver-discussions-components-files/4/pastedimage1647486099833v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;my project&amp;nbsp;directed advertising low quality audio（2kByte/s), One-way communication,no reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Because need to send continuous audio data, so prepare the next data in sent function.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;data must be send one by one, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;it means :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;send next data at finshed last data sending，&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;not at timeout.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;as:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i&amp;#39;ll periodic_adv send &amp;quot;123456789&amp;quot;,&amp;nbsp; three bytes are sent at a time.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;1.bt_le_per_adv_set_data(&amp;quot;123&amp;quot;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;2.when &amp;quot;123&amp;quot; send finshed, in sent() function&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;bt_le_per_adv_set_data(&amp;quot;456&amp;quot;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.when &amp;quot;456&amp;quot; send finshed, in sent() function&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;bt_le_per_adv_set_data(&amp;quot;789&amp;quot;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Make sure periodic_sync receives correctly &amp;quot;123456789&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error received:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;123123456789&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;456123789&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;789123&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;123789&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You know what I mean?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/358460?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 14:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4a6274a-8fe6-4728-9610-c59e1649b012</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The second parameter of the &lt;em&gt;bt_le_ext_adv_start(..)&lt;/em&gt; function provides a pointer to a struct of type &lt;em&gt;bt_le_ext_adv_start_param&lt;/em&gt;, which allows you to define the timeout either as a time (in 10ms units), or as a number of advertising events:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;struct bt_le_ext_adv_start_param {
	/**
	 * @brief Advertiser timeout (N * 10 ms).
	 *
	 * Application will be notified by the advertiser sent callback.
	 * Set to zero for no timeout.
	 *
	 * When using high duty cycle directed connectable advertising then
	 * this parameters must be set to a non-zero value less than or equal
	 * to the maximum of @ref BT_GAP_ADV_HIGH_DUTY_CYCLE_MAX_TIMEOUT.
	 *
	 * If privacy @kconfig{CONFIG_BT_PRIVACY} is enabled then the timeout
	 * must be less than @kconfig{CONFIG_BT_RPA_TIMEOUT}.
	 */
	uint16_t timeout;
	/**
	 * @brief Number of advertising events.
	 *
	 * Application will be notified by the advertiser sent callback.
	 * Set to zero for no limit.
	 */
	uint8_t  num_events;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you create a struct like this, define either the &lt;em&gt;timeout&lt;/em&gt; or &lt;em&gt;num_event&lt;/em&gt; fields as you want, and provide a pointer to the structure in the&amp;nbsp;&lt;span&gt;&lt;em&gt;bt_le_ext_adv_start(..)&lt;/em&gt; call, then the advertising should time out accordingly.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/358091?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 02:11:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23e0825a-80f4-4104-887e-25037bea02f7</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;how to configured a timeout？is it.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/352x339/__key/communityserver-discussions-components-files/4/pastedimage1647303711957v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the starting example&lt;/span&gt;&lt;span&gt;&amp;nbsp;code&amp;nbsp;&lt;/span&gt; is not perfect, some difficult for novice,&lt;/p&gt;
&lt;p&gt;can help debug the basic function:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1.&amp;nbsp;bt_le_per_adv_set_data() in sent function;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;prepare the next data at&amp;nbsp;finished last sending；&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. set&amp;nbsp;Peer address,&amp;nbsp;for directed advertising;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; for&amp;nbsp;only some one hear;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. enable LE_CODE for long rang;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; for low rate 125kbit/s;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. periodic_sync can recv&amp;nbsp;directed advertising data;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;now it can&amp;#39;t recv data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/358068?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 19:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d2b036-488a-4d50-b9d4-99302ed6cff7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you configured a timeout on the advertising?&lt;/p&gt;
&lt;p&gt;Looking at your code I can&amp;#39;t see that you configure a timeout anywhere.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As explained &lt;a href="https://docs.zephyrproject.org/apidoc/latest/structbt__le__ext__adv__cb.html#a85b8887c9ef443d18b71e9561e7dde60"&gt;here&lt;/a&gt; the sent callback won&amp;#39;t be triggered until the advertising times out, which won&amp;#39;t happen unless you enable it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/357521?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 02:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:097461c7-ff5e-4376-a418-df83f65425c1</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;Hello&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thank you very much,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;it work,but can&amp;#39;t enter sent callback function,no recv callback.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;i want change next data in sent callback(when send finished).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/371x66/__key/communityserver-discussions-components-files/4/pastedimage1646962703975v2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;bluetooth/bluetooth.h&amp;gt;
#include &amp;quot;common/log.h&amp;quot;

static uint8_t mfg_data[9] = { 0xff, 0xff, 0x00 };
static struct bt_le_ext_adv_cb cb;//call back

static const struct bt_data ad[] = {
	BT_DATA(BT_DATA_MANUFACTURER_DATA, mfg_data, 9 ),
};
static const struct bt_data sd[] = {
	BT_DATA(BT_DATA_MANUFACTURER_DATA, mfg_data, 9 ),
};

void sent(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_sent_info *info)
{
        printk(&amp;quot;Sent Data...&amp;quot;);
}
void connected(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_connected_info *info)
{
      printk(&amp;quot;connected...&amp;quot;);
}
void scanned(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_scanned_info *info)
{
      printk(&amp;quot;scanned...&amp;quot;);
}

void main(void)
{
	struct bt_le_ext_adv *adv;
        cb.sent=sent;//call back
        cb.connected=connected;//call back
        cb.scanned=scanned;//call back
	int err;

	printk(&amp;quot;Starting Periodic Advertising Demo\n&amp;quot;);

	// Initialize the Bluetooth Subsystem
	err = bt_enable(NULL);
	if (err) {
		printk(&amp;quot;Bluetooth init failed (err %d)\n&amp;quot;, err);
		return;
	}
 
        // Non-connectable extended advertising with @ref BT_LE_ADV_OPT_USE_NAME BT_LE_ADV_OPT_CODED
       #define BT_LE_EXT_ADV_NCONN_NAME_CODED  BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
						 BT_LE_ADV_OPT_USE_NAME | BT_LE_ADV_OPT_USE_TX_POWER | \
                                                 BT_LE_ADV_OPT_CODED, \
						 BT_GAP_ADV_FAST_INT_MIN_1, \
						 BT_GAP_ADV_FAST_INT_MAX_1, \
						 NULL)   //Peer address, set to NULL for undirected advertising
	// Create a non-connectable non-scannable unDIRECTED advertising set
	err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN_NAME_CODED, &amp;amp;cb, &amp;amp;adv);
	if (err) {
		printk(&amp;quot;Failed to create advertising set (err %d)\n&amp;quot;, err);
		return;
	}

        #define BT_LE_PER_ADV_P   BT_LE_PER_ADV_PARAM(BT_GAP_PER_ADV_FAST_INT_MIN_1, \
						  BT_GAP_PER_ADV_FAST_INT_MIN_1, \
						  BT_LE_PER_ADV_OPT_USE_TX_POWER)
	// Set periodic advertising parameters
	err = bt_le_per_adv_set_param(adv,BT_LE_PER_ADV_DEFAULT);
	if (err) {
		printk(&amp;quot;Failed to set periodic advertising parameters (err %d)\n&amp;quot;, err);
		return;
	}
        err = bt_le_ext_adv_set_data(adv,ad, ARRAY_SIZE(ad),sd, ARRAY_SIZE(sd) );
	if (err) {
		printk(&amp;quot;Failed to set  bt_le_ext_adv_set_data (err %d)\n&amp;quot;, err);
		return;
	}

	// Enable Periodic Advertising
	err = bt_le_per_adv_start(adv);
	if (err) {
		printk(&amp;quot;Failed to enable periodic advertising (err %d)\n&amp;quot;, err);
		return;
	}

	// Start extended advertising
	err = bt_le_ext_adv_start(adv, BT_LE_EXT_ADV_START_DEFAULT);
	if (err) {
		printk(&amp;quot;Failed to start extended advertising (err %d)\n&amp;quot;, err);
		return;
	}

    for(int i=0;i&amp;lt;sizeof(mfg_data);i++){mfg_data[i]=0;}
	while (true) 
	{
		k_sleep(K_SECONDS(1));

		mfg_data[2]++;

		printk(&amp;quot;Set Periodic Advertising Data...&amp;quot;);
		err = bt_le_per_adv_set_data(adv, ad, ARRAY_SIZE(ad));
		if (err) {
			printk(&amp;quot;Failed (err %d)\n&amp;quot;, err);
			return;
		}
		printk(&amp;quot;done.\n&amp;quot;);
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS1.9.0 or NCS1.9.1 periodic_adv work error in nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/357464?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 15:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c448f20-3cc5-4e59-8f17-95b70a79ed17</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Could you try this sample instead?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/periodic_5F00_adv_5F00_5340_5F00_fix.zip"&gt;devzone.nordicsemi.com/.../periodic_5F00_adv_5F00_5340_5F00_fix.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I believe the issue is that extended advertising is not set up properly for the network core, since the standard sample doesn&amp;#39;t include the child_image configuration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>