<?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>Gazelle and BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104122/gazelle-and-ble</link><description>Hello, 
 
 I&amp;#39;m working up an application that uses BLE and Gazella with a &amp;#39;base&amp;#39; device that typically operates as a gazelle host to communicate to devices and then at the push of a button switches the gazella off and starts up BLE advertising to communicate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Sep 2023 13:48:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104122/gazelle-and-ble" /><item><title>RE: Gazelle and BLE</title><link>https://devzone.nordicsemi.com/thread/447973?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 13:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48fd1364-d3fa-4a64-a1b3-7f66c3a4090a</guid><dc:creator>NeilB</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thanks, I think this is going to be a bit complicated to mis protocols.&amp;nbsp; I assume that I&amp;#39;m better off just sticking to one protocol so I&amp;#39;ll look into having the device work as a BLE central and peripheral and communicate with the sub devices via BLE from base unit to sub device - the reason I didn&amp;#39;t want to do that was because I don&amp;#39;t want to advertise the sub devices because it&amp;#39;ll confuse the end users to see multiple bluetooth devices advertised when they only need one but I can always just refuse connections to anything except the base unit or try to setup some kind of direct advertising system.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gazelle and BLE</title><link>https://devzone.nordicsemi.com/thread/447970?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 13:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c5b9a25-2b21-403b-ab11-b5ce9f56c9d0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Neil,&lt;/p&gt;
&lt;p&gt;It turns out that this is a bit trickier than I thought. The gazell glue layer was not designed for multiprotocol and therfore just including Gazell in the project will cause problems with multiple ISR&amp;#39;s for the same interrupt as it does not support dynamic&amp;nbsp; interrupts. To demonstrate this, you can comment out line 70 - 152 in&amp;nbsp;nrf/subsys/gazell/gzll_glue.c from NCS 2.4.2, and your Bluetooth code should work again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Though we have not implmeented it for Gaszell, you can see how&amp;nbsp;dynamic interrupts can be done in the ESB implementation in&amp;nbsp;nrf/subsys/esb/esb.c (search for&amp;nbsp;CONFIG_ESB_DYNAMIC_INTERRUPTS).&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gazelle and BLE</title><link>https://devzone.nordicsemi.com/thread/447745?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 13:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a9fa304-6bcd-408d-bab6-322d5a9e39e6</guid><dc:creator>NeilB</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thanks for your reply - the idea was to turn the Gazelle and BLE on and off at the push of a button so neither is active at the same time but I guess that even when disabled the radio is effectively &amp;#39;used&amp;#39; by the protocol?&amp;nbsp; The code at the moment doesn&amp;#39;t do anything at all with Gazelle but simply adding in the config to add Gazelle causes the crash.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; In terms of resetting we could do it, receive data from the BLE interface, write it to flash and then reset to gazelle, load it in from the flash and send it to the devices.&amp;nbsp; However the same issue applies here as simply adding in CONFIG_GZLL=y and CONFIG_GAZELLE=y along with the BLE config causes the crash above to happen even if Gazelle and BLE are not configured when I start BLE advertising.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Is there a way to specify what configurations are loaded according to a flag? Also is there a way to simply turn the Gazella/BLE on and off or does simply including the config option setup the radio for that protocol?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gazelle and BLE</title><link>https://devzone.nordicsemi.com/thread/447728?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 12:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:810d9546-b361-4cf3-90bb-a0f076da5703</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Neil,&lt;/p&gt;
&lt;p&gt;You cannot use two separate radio protocols at the same time, which it seems you are trying to do here. In order to use two radio protocols there needs to be a form of time sharing, and this can be&amp;nbsp;accomplished by the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/samples/mpsl/timeslot/README.html"&gt;MPSL timeslot API&lt;/a&gt;, but we do not have any samples demonstrating this with Gazelle.&lt;/p&gt;
&lt;p&gt;Is it OK for your device to reset between when switching states? If so a simple and clean solution would be to make a choice at boot, and initialize either BLE or Bluetooth, and reset when there is a need for switching. In that case you could write to GPREGRET before resetting, and read that back after reset to know which mode to boot up in, or you could store this in flash if the changes in mode are not frequent.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gazelle and BLE</title><link>https://devzone.nordicsemi.com/thread/447543?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 15:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29de7ca-c40a-4180-ade4-ade18d794758</guid><dc:creator>NeilB</dc:creator><description>&lt;p&gt;sorry that should read &amp;#39;&lt;span&gt;and then switches BLE off and Gazelle on at the push of another button.&amp;#39;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gazelle and BLE</title><link>https://devzone.nordicsemi.com/thread/447518?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 13:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86679f01-016b-450f-9f2f-83bbef44fa5a</guid><dc:creator>NeilB</dc:creator><description>&lt;p&gt;Note that this only happens when I activate the gazell glue layer (though you obviously need both for gazell to work)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>