<?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>Merge advertising and SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100199/merge-advertising-and-spi</link><description>hi 
 I am using NRF52840 as slave and Linux OS as master. How can I merge advertising and SPI communications into one code and advertise the nrf52840 advertising name every ten seconds? And how can I change the advertisement name via spi protocol in a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 May 2023 13:17:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100199/merge-advertising-and-spi" /><item><title>RE: Merge advertising and SPI</title><link>https://devzone.nordicsemi.com/thread/428178?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 13:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e9d6c1f-bee1-4a0c-8358-c14b9909c528</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would start by looking at our Bluetooth Low Engery Fundamentals, especily exercise 2&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/topic/blefund-lesson-2-exercise-2/"&gt;https://academy.nordicsemi.com/topic/blefund-lesson-2-exercise-2/&lt;/a&gt;&amp;nbsp;and use it as a fundation and add the SPI to that code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can have a look at this &lt;a href="https://github.com/too1/ncs-spi-master-slave-example"&gt;example &lt;/a&gt;for seting up SPI communication, it shows both slave and master.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for chaning the Advertisment name: I have not done it before, however you can have a look at this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/gap.html#c.bt_le_adv_update_data"&gt;function&lt;/a&gt; for how to update BLE Characeristics at run time, and then you will need to figure at a good way to close the loop.&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></channel></rss>