<?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>Modify broadcast data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117599/modify-broadcast-data</link><description>hello： 
 In nrf5,the content of this struct variable can be easily modified to change the advertising data even during advertising,just like this: 
 ble_gap_adv_data_t m_adv_data = { .adv_data = { .p_data = ADV_DATA, .len = ADV_DATA_LENGTH }, .scan_rsp_data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jan 2025 11:54:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117599/modify-broadcast-data" /><item><title>RE: Modify broadcast data</title><link>https://devzone.nordicsemi.com/thread/517200?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 11:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1b56317-c288-4082-8993-5bf55fb03723</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;So I just heard back from our softdevice team. They also think that using pins to measure is the best option.&amp;nbsp;&lt;span&gt;The advertiser and scanner have separate clocks so a timestamp on the advertiser has no meaning compared to a timestamp on the scanner&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify broadcast data</title><link>https://devzone.nordicsemi.com/thread/517103?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 00:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85f440f5-777b-40cf-becd-042f30d1629b</guid><dc:creator>Allen23122452121</dc:creator><description>&lt;p&gt;Thank you,I&amp;#39;ll try your suggestion. Also, if there is a way to modify the packet within the radio, please let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify broadcast data</title><link>https://devzone.nordicsemi.com/thread/516990?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 13:10:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5799dbfd-9104-486d-8658-d3d731834f3f</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I have to say I&amp;#39;m honestly not sure if you can change the package within the radio notification. I will ask internally&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just wondering if it would not be better to toggle a pin on both the sender and receiver and use a scope to measure the time between two devices.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify broadcast data</title><link>https://devzone.nordicsemi.com/thread/516972?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 12:07:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa31cd9b-e9eb-4a68-8904-7df470bf0296</guid><dc:creator>Allen23122452121</dc:creator><description>&lt;p&gt;Thank you, I have already tried your suggestion, and it does work.&lt;/p&gt;
&lt;p&gt;However, my work involves studying the delay in Bluetooth neighbor discovery, so I need to know the exact time from the start of advertising to when the advertisement packet is scanned by the scanning device. The method I am using is to record the time when the antenna starts and write it into the advertisement packet, so the broadcast packet will carry the time it was sent. When the receiver receives the packet, it will know when the packet was sent. Therefore, I need to modify the content of the advertisement packet in the radio_notification. However, it seems that this function cannot be called inside the radio notification, and the error message is as follows:&lt;/p&gt;
&lt;p&gt;*** Booting nRF Connect SDK v2.5.0 ***&lt;br /&gt;I: SoftDevice Controller build revision: &lt;br /&gt;I: c5 93 ba a9 14 4d 8d 05 |.....M..&lt;br /&gt;I: 30 4e 9b 92 d7 71 1e e8 |0N...q..&lt;br /&gt;I: aa 02 50 3c |..P&amp;lt; &lt;br /&gt;I: HW Platform: Nordic Semiconductor (0x0002)&lt;br /&gt;I: HW Variant: nRF52x (0x0002)&lt;br /&gt;I: Firmware: Standard Bluetooth controller (0x00) Version 197.47763 Build 2370639017&lt;br /&gt;I: Identity: DD:78:A1:BA:18:E4 (random)&lt;br /&gt;I: HCI: version 5.4 (0x0d) revision 0x1102, manufacturer 0x0059&lt;br /&gt;I: LMP: version 5.4 (0x0d) subver 0x1102&lt;br /&gt;Created adv: 0x20001d30&lt;br /&gt;ASSERTION FAIL @ WEST_TOPDIR/zephyr/kernel/sem.c:128&lt;br /&gt;E: r0/a1: 0x00000004 r1/a2: 0x00000080 r2/a3: 0x20007380&lt;br /&gt;E: r3/a4: 0x00000001 r12/ip: 0x20005060 r14/lr: 0x0002b977&lt;br /&gt;E: xpsr: 0x61000025&lt;br /&gt;E: Faulting instruction address (r15/pc): 0x0003139e&lt;br /&gt;E: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have any good suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify broadcast data</title><link>https://devzone.nordicsemi.com/thread/516963?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 11:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:020ba09d-34f5-45ab-be1f-20d4366a903d</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Allen and thank you for your patience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think the best is to use&amp;nbsp;&lt;span&gt;bt_le_ext_adv_set_data as this will allow you specify which advertisement to update&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;Runar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify broadcast data</title><link>https://devzone.nordicsemi.com/thread/516439?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2024 02:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a91a28e4-4830-4118-9983-caf4440da29a</guid><dc:creator>Allen23122452121</dc:creator><description>&lt;p&gt;Hello, thank you very much for your response.&lt;br /&gt;I am developing based on the example &amp;quot;multiple adv sets,&amp;quot; which broadcasts two advertisements simultaneously. I noticed that the function you provided does not pass a pointer to a specific advertisement.&lt;br /&gt;If I want to update the data of a specific advertisement in the multiple advertising sets, how should I proceed?&lt;br /&gt;I look forward to your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify broadcast data</title><link>https://devzone.nordicsemi.com/thread/516362?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2024 14:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8ab0076-8f61-4ee9-8798-a78319fb9947</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Check out:&amp;nbsp;&lt;span&gt;bt_le_adv_update_data().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is for instance show in:&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-2-bluetooth-le-advertising/topic/blefund-lesson-2-exercise-2/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-2-bluetooth-le-advertising/topic/blefund-lesson-2-exercise-2/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>